Log In · Register

 
 
Closed TopicStart new topic
drop downs.
Smarmosaur
post 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?
 
Mickey
post Jul 22 2008, 02:50 PM
Post #2


Treasure Pleasure
********

Group: Head Staff
Posts: 11,749
Joined: Oct 2005
Member No: 281,127



I found this tutorial on Google. It should work on MySpace without using any Javascript. You can find an example of the working script here. _smile.gif
 
Smarmosaur
post 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. pinch.gif
 
Mickey
post 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.
 
manny-the-dino
post 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. _smile.gif
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: