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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Re-size window! Please Help!

Status
Not open for further replies.

SPYDERIX

Technical User
Jan 11, 2002
1,899
CA
Hi,

I'm looking for either some JS or SSI to first of all determine if the user is using a Mac then next determine if they are using IE-5 then if both of those conditions match then I want to resize the window in only 1 pixel then back out 1 pixel no matter what size of window they have open.

Can someone help me out. This is a bug on my website that's driving me crazy. I have <DIV>'s that don't position properly unless you resize the window after the page has loaded and it only happens when using IE-5 on the Mac.

Thanks guys! NATE
design@spyderix-designz.com
 
The resize in and out part is easy:

<script>
<!--
var height=screen.height;
var width=screen.width;
resizeTo(width-1,height-1);
resizeTo(width+1;height+1);
//-->
</script>

Rick It's a pleasure to know that I've helped you. If I have,
please click the link below to let me know. :)
 
That doesn't work. This only has to work on IE-5 for the MAC.

First your script has an error, I had to change the ; to a , and when you look at this page when it's not maximized then refresh the window becomes huge. That's not what I want at all. Mac's don't have a maximize function so their window could be any size so I need it to just resize in 1 pixel then back out.

here is the page
Anyone know how to do this!

Thanks! NATE
design@spyderix-designz.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top