[ Index ]
 

Code source de Seagull 0.6.1

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/js/ -> hack-IE-hover.js (source)

   1  //  IE hack to simulate :hover on "li" tags
   2  //  As IE only accept :hover css pseudo element on "a" tags, this hack automatically
   3  //  adds a "sfhover" class name to all li tags.
   4  /******************************************************************************************/
   5  sfHover = function() {
   6      var sfEls = document.getElementsByTagName("li");
   7      for (var i=0; i<sfEls.length; i++) {
   8          sfEls[i].onmouseover=function() {
   9              this.className+=" sfhover";
  10          }
  11          sfEls[i].onmouseout=function() {
  12              this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
  13          }
  14      }
  15  }
  16  if (window.attachEvent) window.attachEvent("onload", sfHover);


Généré le : Fri Mar 30 01:27:52 2007 par Balluche grâce à PHPXref 0.7