Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

explorer resize window woes

Status
Not open for further replies.

tellersix

Programmer
Oct 19, 2003
23
US
i have a gallery page where it became necessary to create pop ups for each thumbnail, and each pop up window needed to fit the image exactly. so i used this little script below. (i know the sizes are the same for I.E. and other browsers, but that was the only way i could get this to work) it works great in Netscape, 100%, and all most works great in I.E., but, for some reason it will not recognize a width below a certain length, for example the size i have below is too narrow and the window defaults to a seemingly random smallest width, thus the image is hugged by the window on all sides except the right side. this small pillar of extra space on the right side of my pop up images in I.E. os driving me mad. please help me. thanks.

<SCRIPT LANGUAGE=&quot;Javascript&quot;>
if ( document.all )
window.resizeTo(277,500); // IE size
else
window.resizeTo(277,500); // others
</SCRIPT>

 
in my experience, 100 x 100 is the smallest allowed window size. going smaller than 277 doesn't work for you?

=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 
right exactly, i haven't expierimented to locate the exact smallest size i can acheive, but it does appear that 277 is too small. i have never seen something like this, it baffles me, and this site is a hop skip and a jump away from being done, getting hung up by something so weird and small is frustrating... thanks for replying, i apreciate it.
 
can you provide a URL so i can see what's happening? or post the code for the page in question?


=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top