Code:
<script type="text/javascript">
var newWindow = null;
function closeWin(){
if (newWindow != null){
if(!newWindow.closed)
newWindow.close();
}
}
function popUpWin(url, type, strWidth, strHeight){
closeWin();
if (type == "fullScreen"){
strWidth = screen.availWidth - 10;
strHeight = screen.availHeight - 160;
}
var tools="";
if (type == "standard" || type == "fullScreen") tools = "resizable,toolbar=no,location=no,scrollbars=no,menubar=no,width="+strWidth+",height="+strHeight+",top=0,left=0";
if (type == "console") tools = "resizable,toolbar=no,location=no,scrollbars=no,width="+strWidth+",height="+strHeight+",left=0,top=0";
newWindow = window.open(url, 'newWin', tools);
newWindow.focus();
}
</script>
<script type="text/javascript">
var newWindow = null;
function closeWin(){
if (newWindow != null){
if(!newWindow.closed)
newWindow.close();
}
}
function popUpWin(url, type, strWidth, strHeight){
closeWin();
if (type == "fullScreen"){
strWidth = screen.availWidth - 10;
strHeight = screen.availHeight - 160;
}
var tools="";
if (type == "standard" || type == "fullScreen") tools = "resizable,toolbar=no,location=no,scrollbars=no,menubar=no,width="+strWidth+",height="+strHeight+",top=0,left=0";
if (type == "console") tools = "resizable,toolbar=no,location=no,scrollbars=no,width="+strWidth+",height="+strHeight+",left=0,top=0";
newWindow = window.open(url, 'newWin', tools);
newWindow.focus();
}
</script>
a u body je ovo :
Code:
<a href="photo/clanovi/ykd_team04.jpg" target="popUpWin" onclick="popUpWin(this.href,'standard',328,709);return false;"><img src="photo/clanovi/clanovi_thumb/ykd_team04.jpg" width="120" height="55" border="0" /></a>
<a href="photo/clanovi/ykd_team04.jpg" target="popUpWin" onclick="popUpWin(this.href,'standard',328,709);return false;"><img src="photo/clanovi/clanovi_thumb/ykd_team04.jpg" width="120" height="55" border="0" /></a>
znaci ocigledno je da je javascript vezan za thumbnail i da otvara veliku sliku po izvrsenju. tu nastaje problem . . .
posto zadam height i width (height=328,width=709) posto su to, jeli velicine slike, taj popup ima jos malo belog prostora sa strane (ima beline) koja ne razumem zasto ostaje tu.
ima li neko leka? hvala unapred.