Hello,
I'm currently creating a new layout for my website and decided to use a DHTML menu. Because my layout is centered on a page, I had to make the StartLeft variable relative to the user's own resolution & browser. This is what I did:
StartLeft = document.body.clientWidth/2 -280
All fine, I open my site and its good. The problem is now, when the browser is resized, the placement stays there.
Is there any way to use an onResize event to correct the placement? Maybe unload the script and reload it?
All help is welcome
The site I'm talking about:
The script I'm talking about:
I'm currently creating a new layout for my website and decided to use a DHTML menu. Because my layout is centered on a page, I had to make the StartLeft variable relative to the user's own resolution & browser. This is what I did:
StartLeft = document.body.clientWidth/2 -280
All fine, I open my site and its good. The problem is now, when the browser is resized, the placement stays there.
Is there any way to use an onResize event to correct the placement? Maybe unload the script and reload it?
All help is welcome
The site I'm talking about:
The script I'm talking about: