Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » drop down menus with persistence
Closed Thread
Old 11-29-2005, 02:03 PM   #1 (permalink)
 
Junior Techie

Join Date: Jul 2004

Posts: 57

kerriganm

Default drop down menus with persistence

Need help tweaking (or completely rewriting) a drop down menu.

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! Thanks!
kerriganm is offline  
Old 11-29-2005, 09:01 PM   #2 (permalink)
 
Ultra Techie

Join Date: Jul 2005

Posts: 530

TheHeadFL

Send a message via AIM to TheHeadFL
Default

Look around for info on the <div> tag, you can use that to do what you're saying. You can modify the contents (HTML) of an entire div'd region using javascript and some simple commands.
__________________
Desktop machine: 2 x Opteron 246, Asus K8N-DL, 2GB PC3200 ECC Reg., XFX GeForce 6600GT, 74gb WD Raptor, 2 x 19\" LCDs, Windows XP x64
Server machine: Intel P4 3.0GHz 2MB EM64T, ECS i865pe, 1GB PC3200, 36gb WD Raptor, Windows Server 2003
Laptop: Dell Inspiron 9100 (Intel P4 3.2GHz 1MB Prescott, i865pe, 512MB PC3200, Mobility Radeon 9700, DVD+R/DL Burner), Windows XP
Linux: P3 450Mhz, 386MB ram, Slackware 10.1 (Running mySQL/Apache)
TheHeadFL is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On