PDA

View Full Version : DropDown Navigation/menu in DIVs?



Meti
09-12-2008, 05:18 PM
Hey,
Is it possible to do dropdown navigation/menus in DIVs and javascript or whatever?

If yes, please tell me :)

+rep

Iszak
09-12-2008, 06:08 PM
Surely it is - I'll whip you up an example with jQuery.

Edit: Wait - Horizontal or Vertical?

Iszak
09-12-2008, 06:30 PM
Sorry about double post, couldn't edit the previous one, here is two variations of the horizontal drop down menu - although it uses links (a's) and not solely (divs), it's better this way - I prefer lists to be honest (ul and li). Enjoy.

http://pastebin.me/493eb8b4eda5d - Without recalling other submenus
http://pastebin.me/493eb93340d10 - With recalling other submenus

Managed to edit - Vertical Horizontals
http://pastebin.me/493ebab383372 - Without recalling other submenus
http://pastebin.me/493eba61c6bdd - With recalling other submenus

Personally, I prefer the horizontal with drop down / slide out. Anyhow, enjoy :) Any questions / requests e.g. hover ones, just ask.

Meti
10-12-2008, 03:24 PM
Thanks alot man! +rep

I'll PM you if I have any issues with this ;)

Want to hide these adverts? Register an account for free!