I'm working on some mods to my page, and decided to try and rig up a sliding menu to act as a pull-down.
It kind of works but the "pulldowns" aren't attached to the elements and the other "buttons" flow funny.
Here's some of the code
Code:
. . .
<script type="text/javascript">
<!--
function toggleMenu(currMenu){
if (document.all){
thisMenu = eval("document.all." + currMenu + ".style");
if (thisMenu.display == "block"){
thisMenu.display = "none";
} else {
thisMenu.display = "block";
}
return false;
} else {
return true;
}
}
// -->
</script>
<style type="text/css">
<!--
. . .
#menu1{display:none; width:150; background:navy;
border:outset; border-color:silver}
#menu2{display:none; width:150; background:navy;
border:outset: border-color:silver}
#menu3{display:none; width:150; background:navy;
border:outset: border-color:silver}
#menu4{display:none; width:150; background:navy;
border:outset: border-color:silver}
#menu5{display:none; width:150; background:navy;
border:outset: border-color:silver}
#menu6{display:none; width:150; background:navy;
border:outset: border-color:silver}
-->
</style>
<body>
. . .
<a href="http://foo.com/" target="_blank" onClick="return toggleMenu('menu1')">
<img alt="Dummy Image"
src="http://www.foo.com/bar.gif" height="50" width="100" border="0" />
</a>
<span id="menu1">
foo
bar
</span>