drop downs. |
![]() ![]() |
drop downs. |
Jul 22 2008, 02:48 PM
Post
#1
|
|
|
AKA RockIt Studios ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 2,398 Joined: Jun 2006 Member No: 421,809 |
i searched around a bit and couldn't find anything.
how can i make drop down menus when a link is hovered? or is it not possible without javascript? |
|
|
|
Jul 22 2008, 02:50 PM
Post
#2
|
|
|
Treasure Pleasure ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Head Staff Posts: 11,749 Joined: Oct 2005 Member No: 281,127 |
|
|
|
|
Jul 28 2008, 08:57 PM
Post
#3
|
|
|
AKA RockIt Studios ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 2,398 Joined: Jun 2006 Member No: 421,809 |
thanks, it works, but there's a lot of things that are messed up. also, it doesn't work in IE.
|
|
|
|
Jul 28 2008, 09:16 PM
Post
#4
|
|
|
Treasure Pleasure ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Head Staff Posts: 11,749 Joined: Oct 2005 Member No: 281,127 |
I believe they said it won't work in IE, but I'll play around with the code and see if I can get it to work at least for other browsers.
EDIT: I tried out the code but changed the ID's into classes since I don't think MySpace allows ID's. It worked for me, or at least on FireFox. Okay, this code here is for the actual dropdown menu: CODE <div class="dropdownmenu"> <ul class="item1"> <li class="top">menu item</li> <li class="item"><a href="#">menu item 1</a></li> <li class="item"><a href="#">menu item 2</a></li> <li class="item"><a href="#">menu item 3</a></li> </ul> <ul class="item2"> <li class="top">menu item</li> <li class="item"><a href="#">menu item 1</a></li> </ul> <ul class="item3"> <li class="top">menu item</li> <li class="item"><a href="#">menu item 1</a></li> <li class="item"><a href="#">menu item 2</a></li> </ul> <ul class="item4"> <li class="top">menu item</li> <li class="item"><a href="#">menu item 1</a></li> <li class="item"><a href="#">menu item 2</a></li> <li class="item"><a href="#">menu item 3</a></li> <li class="item"><a href="#">menu item 4</a></li> </ul> </div> This here is for its style: CODE <style> .dropdownmenu {background-color:ff0000;} .dropdownmenu ul .item {display:none;} .dropdownmenu ul:hover .item {display:block; background:000000; padding:1px; margin:1px;} .dropdownmenu ul:hover .item a {color:ffffff; text-decoration:none; display:block;} .dropdownmenu ul:hover .item a:hover {color:999999;} .dropdownmenu ul {width:100px; float:left; margin:0px; padding:2px; background-color:b10000; list-style:none;} </style> Just make the necessary changes on the stylesheet part according to your liking. |
|
|
|
Aug 15 2008, 01:50 PM
Post
#5
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrator Posts: 16,448 Joined: Jan 2007 Member No: 498,468 |
Due to this topic being 2 weeks old & the problem being solved, this topic is Closed & Moved. PM me if you'd like for me to open this.
|
|
|
|
![]() ![]() |