Preventing scrolling

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
nodata
Beginner
Beginner
Posts: 9
Joined: Tue Oct 21, 2003 4:08 pm

Preventing scrolling

Post by nodata »

The vertical menu on this page:
http://www.west.asu.edu/sa/testsite/sl1.htm
will move up or down to resist scrolling.
i.e. it will show a scrollbar only when there is not enough room to display the full menu in the browser window.

The horizontal menu on this page (choose "DHTML Menu"):
http://milonic.com/
doesn't do this. Instead of the menu moving the menu to resist scrolling, a scroll bar appears.

How can I get a horizontal menu to resist scrolling?
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: Preventing scrolling

Post by John »

nodata wrote:How can I get a horizontal menu to resist scrolling?
You haven't posted a URL so we can see your code.

If by the above you mean how do you prevent a menu from following down the page, simply leave out the followscroll parameter. A good place to start would be http://milonic.com/forum/viewtopic.php?t=2981.
John
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Try this sample. Not the page menu which is fixed, but the sample which follows down the page. Scroll down a bit so the menu scrolls until you see it at the top. I'm set at 800x600 and the scroll bar doesn't appear under the DHTML section. But, if I resize my browser to smaller then the scroll does appear. I think that's what you meant.
http://milonic.com/menusample.php?sampleid=10

Ruth
Post Reply