reload on resize

merlin's picture

They have: 410 posts

Joined: Oct 1999

hi there
i'm looking for a js, that reloads my site when the user changes the size of his browser window.
i'd say it's a very simple script, but i haven't found it anywhere...
may anyone help?
thnx!

They have: 19 posts

Joined: Oct 1999

try:

<BODY onResize='window.location.reload()'>

merlin's picture

They have: 410 posts

Joined: Oct 1999

this doesn't seem to be a good idea...
it doesn't stop reloading the site, when i change the size.....

AndyB's picture

They have: 344 posts

Joined: Aug 1999

If it's for the site URL in your profile, then why not just make the left frame a fixed width and wide enough for your logo?

If it's for something else - why does the site need to reload if I change the size of my window (something I do all the time).

merlin's picture

They have: 410 posts

Joined: Oct 1999

andyB: it's not for the site in my profile, that's my private 'project'...

i have some mouse-overs and boxes to show, all at the same position (for different image-positions).
everything was doing right, until i resized the window, the boxes moved to a 'wrong' place. when i reload the page, this problem's solved.
or do you have another idea to position the boxes?
that's how i did it:
#box1, #box2 {position:absolute; top:90px; left:185px; width:80px; visibility:hidden; background-color:white}

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.