1 2 3//Nested Side Bar Menu (Mar 20th, 09) 4//By Dynamic Drive: http://www.dynamicdrive.com/style/ 5 6var menuids=["sidebarmenu1"] //Enter id(s) of each Side Bar Menu's main UL, separated by commas 7 8function initsidebarmenu(){ 9for (var i=0; i<menuids.length; i++){ 10 var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul") 11 for (var t=0; t<ultags.length; t++){ 12 ultags[t].parentNode.getElementsByTagName("a")[0].className+=" subfolderstyle" 13 if (ultags[t].parentNode.parentNode.id==menuids[i]) //if this is a first level submenu 14 ultags[t].style.left=ultags[t].parentNode.offsetWidth+"px" //dynamically position first level submenus to be width of main menu item 15 else //else if this is a sub level submenu (ul) 16 ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it 17 ultags[t].parentNode.onmouseover=function(){ 18 this.getElementsByTagName("ul")[0].style.display="block" 19 } 20 ultags[t].parentNode.onmouseout=function(){ 21 this.getElementsByTagName("ul")[0].style.display="none" 22 } 23 } 24 for (var t=ultags.length-1; t>-1; t--){ //loop through all sub menus again, and use "display:none" to hide menus (to prevent possible page scrollbars 25 ultags[t].style.visibility="visible" 26 ultags[t].style.display="none" 27 } 28 } 29} 30 31if (window.addEventListener) 32window.addEventListener("load", initsidebarmenu, false) 33else if (window.attachEvent) 34window.attachEvent("onload", initsidebarmenu) 35 36
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.