source: trunk/spip/esqueleto-redcta/plugins/magusine/themes/nlike/javascript.js @ 96

Last change on this file since 96 was 80, checked in by guille, 16 years ago

el plugin completo

  • Property svn:executable set to *
File size: 567 bytes
Line 
1// javascript permettant de contourner le probleme des li:hover dans ie6
2startList = function() {
3if (document.all&&document.getElementById) {
4menuRoot = document.getElementById("menu");
5for (x=0; x<menuRoot.childNodes.length; x++) {
6node = menuRoot.childNodes[x];
7if (node.nodeName=="LI") {
8node.onmouseover=function() {
9this.className+=" over";
10}
11node.onmouseout=function() {
12this.className=this.className.replace(" over", "");
13}
14}
15}
16}
17}
18
19if (window.attachEvent) { 
20window.attachEvent("onload", startList)
21} else {
22window.onload=startList;
23}
Note: See TracBrowser for help on using the repository browser.