Z
zionblue
Works like a charm in Firefox, but not in IE (IE gets the width right,
but wont resize the height!)
Here is the page -
http://furryfriendshaven.com.wehostwebsites.com/greatroom.html
The first 3 pics on the page are using this link system -
actually rebuilding an existing site, so I copied in the table with the
pics, and started making the popups via a simple CF database and this
javascript on the popup cfm page.
But until I get the height bug fixed, I dont want to rebuild the whole
thing just yet.
Can anyone see why it is doing this?
Here is my javascript, which is resizing the popups for me...
<script language='javascript'>
var temp=self.location.href.split("?");
var picUrl = (temp.length>1)?temp[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-5);
self.focus();
};
</script>
thanks in advance for any help offered
but wont resize the height!)
Here is the page -
http://furryfriendshaven.com.wehostwebsites.com/greatroom.html
The first 3 pics on the page are using this link system -
actually rebuilding an existing site, so I copied in the table with the
pics, and started making the popups via a simple CF database and this
javascript on the popup cfm page.
But until I get the height bug fixed, I dont want to rebuild the whole
thing just yet.
Can anyone see why it is doing this?
Here is my javascript, which is resizing the popups for me...
<script language='javascript'>
var temp=self.location.href.split("?");
var picUrl = (temp.length>1)?temp[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-5);
self.focus();
};
</script>
thanks in advance for any help offered