Popup auto-height not working in IE

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top