Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 1st, 2012  |  syntax: None  |  size: 0.80 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <script type="text/javascript">
  2.        
  3.         fixIE = function() {
  4.             var arrLI = document.getElementById("menu").getElementsByTagName("LI");
  5.             for (var i=0; i<arrLI.length; i++) {
  6.               arrLI[i].onmouseover=function() {
  7.                 this.className+=" sfhover";
  8.               }
  9.               arrLI[i].onmouseout=function() {
  10.                 this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
  11.               }
  12.               if (arrLI[i].getAttribute("level") == "1")
  13.               {
  14.                 var objA = arrLI[i].getElementsByTagName("A")[0];
  15.                 objA.style.width = (objA.innerHTML.length) * 10;
  16.               }
  17.             }
  18.           }
  19.           if (window.attachEvent) window.attachEvent("onload", fixIE);
  20.        
  21.       </script>