Felixd
10-31-2006, 07:17 PM
Hi,
Unable to minimize the pop up window.
It can be closed.
Actual example can be seen:
http://rakuteapots.com/assets/image_test.html
The script was provided thanks to the user Spookster listed in the forum:
http://www.codingforums.com/showthread.php?t=1625
The problem I am encountering is the user is not able to minimize the popup window. If you try, it will automatically come backup.
How can that be adjusted?
The code is: <!--//
function imageView(imgFile,imgTitle,imgWidth,imgHeight,winPosX,winPosY){
preview = window.open("","","resizable=no,toolbar=no,scrollbars=no,menubar=no,status=no,directories=no,width="+imgWidth+",height="+imgHeight+",left="+winPosX+",top="+winPosY+"");
preview.document.write('<html><head><title>'+imgTitle+' - Click to close - <\/title><\/head>'
+'<body onBlur="self.focus();" marginWidth="0" marginHeight="0" topmargin="0" leftmargin="0">'
+'<center>'
+'<a href="javascript:self.close()">'
+'<img border="0" alt="Image loading please wait...." src="'+imgFile+'" width="'+imgWidth+'" height="'+imgHeight+'">'
+'<\/a><\/center>'
+'<\/body><\/html>');
preview.document.close();
}
//-->
</script>
Thanks,
Felix
Unable to minimize the pop up window.
It can be closed.
Actual example can be seen:
http://rakuteapots.com/assets/image_test.html
The script was provided thanks to the user Spookster listed in the forum:
http://www.codingforums.com/showthread.php?t=1625
The problem I am encountering is the user is not able to minimize the popup window. If you try, it will automatically come backup.
How can that be adjusted?
The code is: <!--//
function imageView(imgFile,imgTitle,imgWidth,imgHeight,winPosX,winPosY){
preview = window.open("","","resizable=no,toolbar=no,scrollbars=no,menubar=no,status=no,directories=no,width="+imgWidth+",height="+imgHeight+",left="+winPosX+",top="+winPosY+"");
preview.document.write('<html><head><title>'+imgTitle+' - Click to close - <\/title><\/head>'
+'<body onBlur="self.focus();" marginWidth="0" marginHeight="0" topmargin="0" leftmargin="0">'
+'<center>'
+'<a href="javascript:self.close()">'
+'<img border="0" alt="Image loading please wait...." src="'+imgFile+'" width="'+imgWidth+'" height="'+imgHeight+'">'
+'<\/a><\/center>'
+'<\/body><\/html>');
preview.document.close();
}
//-->
</script>
Thanks,
Felix