Jump to content

PHP Drop down menu?


summerpewp

Recommended Posts

I'm having issues with suckerfishes drop down php code.. anyone familiar with it?

 

I'm trying to create a sub menu using the same method, sucker fishes code seems to work the best on most platforms.. if this isn't the case i would like to know what you would suggest.

 

I'm using a simple UL IL system.. there is a javascript code which they offered to use.. I know this isn't the java form but I'll post the code anyways as i'm not sure if this is something i need to edit...

 

<script type="text/javascript">
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
}
}
window.onload=startList;
</script>

 

This is the drop down code i'm trying to make a "sub menu" for...

 

<li class="menuitem"><a href="#" class="link">Item Database</a>
<ul id="nav">
<li class="menusub"><a href="weapons.php" class="link">Weapons</a>
<ul>
	<li><a href="#" class="link">Spear</a></li>
	<li><a href="#" class="link">Sword</a></li>
	<li><a href="#" class="link">Staff</a></li>
	<li><a href="#" class="link">Fan</a></li>
	<li><a href="#" class="link">Fist</a></li>
	<li><a href="#" class="link">Axe</a></li>
	<li><a href="#" class="link">BroadSword</a></li>
	<li><a href="#" class="link">Bow</a></li>
	<li><a href="#" class="link">Hook</a></li>
     </ul>
        </li>

 

Thanks for any help in advance!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.