Multiple menus on a page

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
steve@jasper.net.au
Beginner
Beginner
Posts: 7
Joined: Tue Aug 05, 2003 12:45 am
Location: Australia

Multiple menus on a page

Post by steve@jasper.net.au »

Hi

I would like to have multiple menus on a page - One a main menu on the side; the others would be menu's activated by a link. I have managed to get that working but there is a slight problem. Once you scroll down the page a little, the menu's suddenly appear a long way away from the links. You can see the effect at <http://www.photothrills.com/articles.html>. Place your mouse over the "Topside Gallery" link and see where the menu appears. Now, scroll down the page a bit and put your mouse over the same link. Note where the menu suddenly appears.

Any ideas on how to get the menus to stay with the links?

Any help most appreciated.



Best Regards



Steve
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

I don't see any problem at all. The sub-menu follows the main menu exactly down the page. Even tried them all. IE6/XP Pro.

BTW, just to be picky, you actually have just one menu system on your site. Multiple menus would be, for instance, your existing vertical menu down the side (with subs), and the addition of a horizontal menu system across the top of the page. See http://tiggrsuccess.com/ as an example.
John
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

All menus rendered fine for me too. I only noticed the menu out of place when I used by scroll wheel on my mouse, but the menu immediately closed since I was off the link. You get a error when you mouseout of the search item on your side menu, just FYI.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
steve@jasper.net.au
Beginner
Beginner
Posts: 7
Joined: Tue Aug 05, 2003 12:45 am
Location: Australia

Post by steve@jasper.net.au »

Well, I now find that this seems to be OS/browser dependent. Under MacOS X 10.2.6 with IE 5.2.2 you will see the effect. Also, on this combination, the menu backgrounds become transparent. Under the same OS with NS 7.1 it works fine (after tweaking the code - see below). Under XP/IE6 the code tweak fixed the problem. Under XP/NS7.1 the code tweak fixed the problem.

BTW. I delved into the code for the popup() function and found that it can take up to four parameters (Not two as the documentation tells you). I changed the call to "popup('underwater',1,1,1)" and this fixed the problem with OS/Browser combos mentioned above. I haven't quite figured out what these other two parameters do but I will play around and see what happens.
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Nice detective work. We got a regular code jockey here! hehe. 8) Glad you were able to solve your problem, even if it was with a hack! Best of luck figuring out what it all means. :lol:
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Post Reply