source: trunk/spip/2.1/extensions/magusine-portage2.1/themes/nlike/javascript.js @ 756

Last change on this file since 756 was 756, checked in by guillermoacedo@…, 14 years ago

se agrego la correccion de magusine para 2.1 basica

  • 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.