Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:30
position of followscroll
Poster: dbonneville
Dated: Wednesday May 5 2004 - 21:03:01 BST
It appears that the menu I'm using won't allow the menu to sit at a true 0 position on the screen. It's about 2 px down from the top. How do I get this to be trully flush at the top? I can see parts of my page whizzing by when I scroll down in the little gap. Is there an invisible border on it or something? I'm working with the sample provided for win98 style menus, sitting on an almost empty webpage. The script to draw the menus is before the body tag on the page, as the examples suggest, so nothing is in the way of it that I can tell.
Here is the code for the menu:
Code:
with(windows98style=new mm_style()){
onbgcolor="#00007F";
oncolor="#FFFFFF";
offbgcolor="#BFBFBF";
offcolor="#000000";
bordercolor="#BFBFBF";
borderstyle="raised";
borderwidth=2;
separatorsize="2";
padding=4;
fontsize="8pt";
fontfamily="arial, helvetica, sans";
high3dcolor="#eeeeee";
low3dcolor="#7F7F7F";
swap3d="1";
subimage="arrow.gif";
subimageposition="right";
}
with(milonic=new menuname("Main Menu")){
style=windows98style;
top=0;
left=0;
alwaysvisible=1;
orientation="horizontal";
followscroll="1";
aI("text=Home;url=http://www.milonic.com/;status=Back To Home Page;");
aI("text=Menu Samples;showmenu=Samples;");
aI("text=Milonic;showmenu=Milonic;");
aI("text=Partners;showmenu=Partners;");
aI("text=Links;showmenu=Links;");
aI("text=My Milonic;showmenu=My Milonic;");
}
onbgcolor="#00007F";
oncolor="#FFFFFF";
offbgcolor="#BFBFBF";
offcolor="#000000";
bordercolor="#BFBFBF";
borderstyle="raised";
borderwidth=2;
separatorsize="2";
padding=4;
fontsize="8pt";
fontfamily="arial, helvetica, sans";
high3dcolor="#eeeeee";
low3dcolor="#7F7F7F";
swap3d="1";
subimage="arrow.gif";
subimageposition="right";
}
with(milonic=new menuname("Main Menu")){
style=windows98style;
top=0;
left=0;
alwaysvisible=1;
orientation="horizontal";
followscroll="1";
aI("text=Home;url=http://www.milonic.com/;status=Back To Home Page;");
aI("text=Menu Samples;showmenu=Samples;");
aI("text=Milonic;showmenu=Milonic;");
aI("text=Partners;showmenu=Partners;");
aI("text=Links;showmenu=Links;");
aI("text=My Milonic;showmenu=My Milonic;");
}
Poster: Ruth
Dated: Thursday May 6 2004 - 6:35:00 BST
I believe it has to do with the margins the browser puts in, which seem to be different in each browser
Ruth
Poster: kevin3442
Dated: Thursday May 6 2004 - 7:58:08 BST
It's probably because you have followscroll=1;. That means the top of the menu will sit at 1px from the top of the browser window once scolling begins (followscroll is not a boolean). That would leave a 1px gap. To get no gap, you need followscrolling to happen at 0px from the top. Problem is that if you set followscroll=0; then menu scrolling doesn't happen. But there is another way to set it at 0. See this post for details on how.
Hope that helps,
Kevin
Industrial Strength JavaScript and DHTML Menus
About Us
Testimonials
Contact Us
Our Distinguished Clients
Investing in Non-Profits
Where Are We
Privacy Policy
Software Licensing Agreement
DHTML JavaScript Menu
Product Information
Page Integration
Quick Reference Guides
Embedding Into a Table or DIV
Purchase
