moin_netset Posted May 19, 2010 Share Posted May 19, 2010 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 More sharing options...
thescientist Posted May 19, 2010 Share Posted May 19, 2010 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 More sharing options...
moin_netset Posted May 20, 2010 Author Share Posted May 20, 2010 what effects? We have no idea what you are trying to get your menu to do. (or at least I don't)I want to apply fading effect by using alpha and opacity or delay the display of sub menu using setTimeout() Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.