Connecting Tech Pros Worldwide Help | Site Map

Popup auto-height not working in IE

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 5th, 2005, 06:05 AM
zionblue@gmail.com
Guest
 
Posts: n/a
Default Popup auto-height not working in IE

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.wehostw...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


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.