Dragzonox
09-02-2005, 06:26 PM
I'm using a code there looks like this:
<head>
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
<title>Click on the image to close window.</title>
<STYLE type="text/css">
#loading{position:absolute; top:0; left:0; width:200; height:200;}
</STYLE>
<script language="javascript">
var arrTemp=self.location.href.split("?");
var picUrl = (arrTemp.length>0)?arrTemp[1]:"";
var NS = (navigator.appName=="Netscape")?true:false;
function FitPic() {
iWidth = (NS)?window.innerWidth:document.body.clientWidth;
iHeight = (NS)?window.innerHeight:document.body.clientHeight;
iWidth = document.images[0].width - iWidth;
iHeight = document.images[0].height - iHeight;
window.resizeBy(iWidth, iHeight);
document.getElementById('loading').style.visibility = "hidden";
self.focus();
};
</script>
</head>
I have the "fix" for Netscape ( var NS = (navigator.appName=="Netscape")?true:false; ), but I miss it for Firefox, the image don't open in the right width, but it do open in the right height..
Can someone help me find the last code?
-Thank You
<head>
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
<title>Click on the image to close window.</title>
<STYLE type="text/css">
#loading{position:absolute; top:0; left:0; width:200; height:200;}
</STYLE>
<script language="javascript">
var arrTemp=self.location.href.split("?");
var picUrl = (arrTemp.length>0)?arrTemp[1]:"";
var NS = (navigator.appName=="Netscape")?true:false;
function FitPic() {
iWidth = (NS)?window.innerWidth:document.body.clientWidth;
iHeight = (NS)?window.innerHeight:document.body.clientHeight;
iWidth = document.images[0].width - iWidth;
iHeight = document.images[0].height - iHeight;
window.resizeBy(iWidth, iHeight);
document.getElementById('loading').style.visibility = "hidden";
self.focus();
};
</script>
</head>
I have the "fix" for Netscape ( var NS = (navigator.appName=="Netscape")?true:false; ), but I miss it for Firefox, the image don't open in the right width, but it do open in the right height..
Can someone help me find the last code?
-Thank You