Moving Menu
Hi all
Now on my page I have a one of those fancy menus that drop down, you know the type, like on "microsoft.com", any way
I want to position the menu on the top of the page so as that when you scroll the page the menu stays at the top of the viewable area of the screen.
The code that displays the menu is several div tags.
Can any body help?
JLS (Joshua Lee Simpson)
Josh Simpson posted this at 06:50 — 29th December 2000.
They have: 147 posts
Joined: Dec 1999
Ok I got it to work in IE
But it doesent work in NS6
function updatepos()
{
var toppos
if (document.all)
{
toppos = document.body.scrollTop;
}
else
{
toppos = window.pageYOffset;
}
menuBar.style.top = toppos+"px";
setTimeout('updatepos()', 25);
}
The menubar.style.top does not seem to position the bar in NS6 any ideas?
JLS (Joshua Lee Simpson)
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.