Jump to content

Effects in drop down menu


moin_netset

Recommended Posts

Hi friends I am using a dropdown menu which works perfectly, following is the code for itNow I want to add some effectsI know that setTimeout() can be effectively used to achieve the same, but I am not able to give proper element and Id references to the script all the time it generates errorsI have been racking my brain on this from a long time, can anybody add some effect and show me<script type="text/javascript">var submenuoffset=-2 var i=0;function createcssmenu1(){ var ultags=document.getElementById('menu').getElementsByTagName("ul") for (var t=0; t<ultags.length; t++){ ultags[t].parentNode.onmouseover=function(){ { this.getElementsByTagName("ul")[0].style.bottom=this.parentNode.offsetWidth+submenuoffset+"px" this.getElementsByTagName("ul")[0].style.display="block" } } ultags[t].parentNode.onmouseout=function(){ this.getElementsByTagName("ul")[0].style.display="none" } } }</script>

Link to comment
Share on other sites

what effects? We have no idea what you are trying to get your menu to do. (or at least I don't)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...