Hi, I am beginer in JavaScript, and I need some help. I am create one CSS menu and submenu disapear in milisecond when is mose out. Now, I would like to put some delay for submenus. I see some menus using setTimeout, but I don't know how to use on my menu.
Here is part what I am using for IE.
Sonam
Here is part what I am using for IE.
| Code: |
| navHover = function() {
var lis = document.getElementById("mojmenu").getElementsByTagName("LI"); for (var i=0; i<lis.length; i++) { lis[i].onmouseover=function() { this.className+=" iehover"; } lis[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" iehover\\b"), ""); } } } trHover = function() { var lis = document.getElementsByTagName("tr"); for (var i=0; i<lis.length; i++) { lis[i].onmouseover=function() { this.className+=" iehover"; } lis[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" iehover\\b"), ""); } } } if (window.attachEvent) window.attachEvent("onload", trHover); if (window.attachEvent) window.attachEvent("onload", navHover); |
Sonam
