//SuckerTree Vertical Menu 1.1 (Nov 8th, 06) //By Dynamic Drive: http://www.dynamicdrive.com/style/ function makeShow(){ $(this.getElementsByTagName("ul")[0]).fadeIn(300);} function makeHide(){ $(this.getElementsByTagName("ul")[0]).fadeOut(100);} var menuids=["suckertree1"] //Enter id(s) of SuckerTree UL menus, separated by commas function buildsubmenus(){ for (var i=0; i-1; t--){ //loop through all sub menus again, and use "display:none" to hide menus (to prevent possible page scrollbars ultags[t].style.visibility="visible" ultags[t].style.display="none" } } /* $("#suckertree1 a").mouseover(function(){ $(this).animate({ backgroundColor: "#d1d1d1" }, 200); }); $("#suckertree1 a").mouseout(function(){ $(this).animate({ backgroundColor: "#fff" }, 200); }); */ } if (window.addEventListener) window.addEventListener("load", buildsubmenus, false) else if (window.attachEvent) window.attachEvent("onload", buildsubmenus)