Jump to content

Effects in drop down menu


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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...