1/* ================================================================ 2This copyright notice must be kept untouched in the stylesheet at 3all times. 4 5The original version of this script and the associated (x)html 6is available at http://www.stunicholls.com/menu/pro_drop_1.html 7Copyright (c) 2005-2007 Stu Nicholls. All rights reserved. 8This script and the associated (x)html may be modified in any 9way to fit your requirements. 10=================================================================== */ 11stuHover = function() { 12 var cssRule; 13 var newSelector; 14 for (var i = 0; i < document.styleSheets.length; i++) 15 for (var x = 0; x < document.styleSheets[i].rules.length ; x++) 16 { 17 cssRule = document.styleSheets[i].rules[x]; 18 if (cssRule.selectorText.indexOf("LI:hover") != -1) 19 { 20 newSelector = cssRule.selectorText.replace(/LI:hover/gi, "LI.iehover"); 21 document.styleSheets[i].addRule(newSelector , cssRule.style.cssText); 22 } 23 } 24 var getElm = document.getElementById("nav").getElementsByTagName("LI"); 25 for (var i=0; i<getElm.length; i++) { 26 getElm[i].onmouseover=function() { 27 this.className+=" iehover"; 28 } 29 getElm[i].onmouseout=function() { 30 this.className=this.className.replace(new RegExp(" iehover\\b"), ""); 31 } 32 } 33} 34if (window.attachEvent) window.attachEvent("onload", stuHover); 35
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.