followscroll param not friend with overflow=scroll

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
phd
Beginner
Beginner
Posts: 2
Joined: Sat Sep 06, 2003 9:42 am

followscroll param not friend with overflow=scroll

Post by phd »

I am using version 5.0, with a vertical menu set with followscroll=20. It is behaving as expected till there.

Now, in case I set overflow=scroll, the situation gets worth : when the page as been scrolled (otherwise it is OK), the main menu is repositionned at 20px of the top, as expected. BUT : the submenus are in a mess :

- their bottom goes till the Netscape or IE window bottom, even if there is just one item in this submenu : the item appears a bit alone in this Y-long box ...

- sometime the submenu is displayed at the top of the window, instead of being at the level of the main menu selected item.

The only workaround I know is unsetting the overflow param.
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

This is funny, everytime I work something out, someone else has posted about this followscroll problem.

phd, your problem with extended submenus usually requires tweaking the menu until its really clean running. It would help if you state browser involved.

However, what I just realized, working on my broswer problem or whatever in IE 5.1.7 is that I can trick the menu, by placing the menu script with followscroll in a table, not using position=relative or table positioning, I used normal screen position. What this does is allow my template --content-- links to activate normally.

Here is the problem, the position from the top of screen, is subtracted from the scroll bar, if the screen position is top=70px then the scroll bar starts 70px down on the submenu. Does this make sense?

Regards,
maz

:lol: This subject is like the energizer bunny
phd
Beginner
Beginner
Posts: 2
Joined: Sat Sep 06, 2003 9:42 am

Post by phd »

Thx for your prompt reply - Yes, it can explain what I observed.

Congratulations for your java development, it is from far the best configurable menu I ever met.

PHD.
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

All congratulations go to Andy who developed the menu.

Let's just say I'm darning old socks when the majority buy a new 'computer'. ;)

There can't be any reason to have a browser lower than mine, check for updates. Most menu problems are caused by browsers redundant in handling javascript. If its an old system check for java system updates too.

Check out the posts on followcroll, try followscroll=1; that is on and off 1 or 0 only. Another method you will find involves this: followscroll="1,100,2"; but check the properties first, my flair is creativity, not memorizaton.

I had to tweak the code to perfection and check site html to make sure the menu worked on an old computer that would not accept the slightest error, followscroll & scroll require a work of art.

Regards
maz
Post Reply