• EN
  • RO

blog of jose kerekes

  • Home
  • About
  • my creations
  • my favorites
  • contact
back to « Hello world!
go to

test

//first we check the browser name and version to be ie6
if((navigator.appName==”Microsoft Internet Explorer”) && (parseInt(navigator.appVersion) <=6)) {
    //then we browse through the li tags
    var target=document.getElementById(’target’).getElementsByTagName(’li’);
    for(i=0; i<target.length; i++) {
    //then we set that on mouseover event to add besides the actual class the “over” class, and on mouseout to remove the over class
        target[i].onmouseover=function() { this.className+=” over”; }
        target[i].onmouseout=function() { this.className=this.className.replace(” over”, “”);  }
}
}

This entry was posted on Monday, July 13th, 2009 at 9:18 am and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

All rights reserved.

Copyright Jozsef Kerekes