Yikes, just found out my JS needs a little tweak, otherwise the menu won't expand, you see, the original author used CSS class switcher, whereas I manipulated the elements style directly, (switching class is better!) Long story short, use this javascript instead of my last one!
Code:
<script type="text/javascript">
// // You need to list all your submenus as an array in this manner
var hide_these = ['mymenu1','mymenu2','mymenu3','mymenu4','mymenu5'];
for ( i = 0; i<hide_these.length; i++ )
{
// ** UPDATED ** \\
document.getElementById(hide_these[i]).className = 'hide';
}
</script>
Aside from that, it will work with <dl> just as well, the CSS for hiding the block does not care what element its hiding!
HTML Code:
<dl id="mymenu1">
<dt><a href="#" class="submenu">Link One here</a></dt>
...
</dl>
Bookmarks