Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   HTML / XHTML / CSS (http://www.programmingforums.org/forum27.html)
-   -   dropdown menu with persistence? (http://www.programmingforums.org/showthread.php?t=7275)

kerriganm Nov 29th, 2005 1:49 PM

dropdown menu with persistence?
 
I'm not sure if I should post this in here- it's HTML, CSS, and JavaScript all together.

What I've got:
Top level items in menu have a rollover effect, and when rolled over a submenu for each item appears horizontally under the main menu item. When a user rolls over the submenu, the top level item rollover effect disappears and rollover effects for the submenu items appear. When the mouse leaves the submenu, the submenu disappears.

What the boss wants:
(effect like menu under logo at http://www.mercury.com/us/)
Top level items in menu have a rollover effect, and when rolled over a submenu for each item appears horizontally under the main menu item. When a user rolls over the submenu, the top level item rollover effect *persists* and rollover effects for the submenu items appear. When a submenu item is clicked, submenu and clicked-submenu-item rollover effect persist while new page loads (in another frame. don't blame me, I hate frames too). When the mouse leaves the clicked-on submenu, the previously-clicked main menu rollover effect and the submenu *persist* until another main menu item is clicked.

Any ideas? I've been looking everywhere and can't find the code to do this. Please help if you can- it'll be an early birthday present for me!

Agent 47 Nov 30th, 2005 12:31 PM

It's pretty simple really.

Google is your friend ;)

Indigno Dec 12th, 2005 9:46 PM

There's a few ways to do it. But (if you have it and know it) Flash is the easiest way to go.

Agent 47 Dec 13th, 2005 11:22 AM

No, it isn't. Please don't give out bad advice.

Lich Dec 13th, 2005 11:42 AM

Javascript or DHTML Is the easiest way to go. This tutorial may be of interest to you: http://www.spoono.com/javascript/tut...rial.php?id=17

Indigno Dec 13th, 2005 7:52 PM

Quote:

Originally Posted by Agent 47
No, it isn't. Please don't give out bad advice.

maybe it's just me. I tried the other ways before and I personally found flash to be the easiest way for me. But I guess it really just depends on what your preferences are.

Agent 47 Dec 13th, 2005 8:20 PM

Flash is way over-rated, and horribly inaccessible - at least with JS there
is a graceful fallback for those without it...

a thing Dec 13th, 2005 8:51 PM

Plus it's nonfree and not a standard.

Lich Dec 14th, 2005 1:04 AM

Flash is much more cleaner cut, but it's only more usefull if you know flash as well as JS. For all intensive purposes, a JS menu is easier to built.

But a flash menu is usually much nicer :)

titaniumdecoy Dec 17th, 2005 2:32 PM

Quote:

Originally Posted by Agent 47
Flash is way over-rated, and horribly inaccessible - at least with JS there is a graceful fallback for those without it...

Quote:

Originally Posted by a thing
Plus it's nonfree and not a standard.

This is not true. Flash Player is free. And it is installed on virtually every computer.

Example: In December 2002 the free Flash Player had been installed on 98 percent of personal computers worldwide, or close to half a billion machines, and around three quarters were running Flash Player 6, according to a survey conducted for Macromedia by research company NPD Online.


All times are GMT -5. The time now is 8:46 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC