After much procrastination, I finally had to write a dropdown menu for use on facebook using CSS/JS. I got most of the ideas and code from these two sites, though they didn’t support facebook. I modified the css/js to work for facebook.
https://www.servage.net/blog/2009/03/20/create-a-cool-css-based-drop-down-menu/ and
http://www.logon2.com.au/blog/archive/troubleshooting/accessible-valid-dropdown-menu-or-popup-menu-using-css-and-semantic-html/
The first site has an example of a very clean drop down menu using ul/li/a tags and the second site explains implements support for IE and other tricks.
Here is the css
#menu, ul#menu
{
font-family:Arial, Verdana;
font-size: 14px;
margin:0;
padding:0;
list-style:none;
z-index:1000;
}ul#menu li
{
display:block;
position:relative;
float:left;
}#menu li ul
{
display:none;
}ul#menu li a
{
display:block;
text-decoration:none;
color: #ffffff;
border-top: 1px solid #ffffff;
padding: 5px 15px 5px 15px;
background: #2C5463;
margin-left: 1px;
white-space: nowrap;
}ul#menu li a:hover
{
background: #617F8A;
}#menu li.mhover ul
{
display: block;
margin:0 -1px;
}#menu li.mhover li
{
float: none;
font-size: 11px;
}#menu li.mhover a
{
background: #617F8A;
}#menu li.mhover li a:hover
{
background: #95A9B1;
}
the FBJS code
function mout(obj)
{
obj.removeClassName('mhover');
}function mover(obj)
{
obj.addClassName('mhover');
}
and the html
<ul id = "menu">
<li><a href = ""> Home </a></li>
<li onmouseover='mover(this);' onmouseout='mout(this);'><a href =""< About Us </a>
<ul>
<li><a href = ""> The Team </a></li>
<li><a href =""> History </a></li>
<li><a href = ""> Vision </a></li>
</ul>
</li>
<li onmouseover='mover(this);' onmouseout='mout(this);'><a href = ""> Products </a>
<ul>
<li><a href = ""> Cozy Couch </a></li>
<li><a href = ""> Great Table </a></li>
<li><a href = ""> Small Chair </a></li>
<li><a href = ""> Shiny Shelf </a></li>
<li><a href = ""> Invisible Nothing </a></li>
</ul>
</li>
<li onmouseover='mover(this);' onmouseout='mout(this);'><a href = ""> Contact </a>
<ul>
<li><a href = ""> Online </a></li>
<li><a href = ""> Right Here </a></li>
<li><a href = ""> Somewhere Else </a></li>
</ul>
</li>
</ul>