Hi I have a vvery simple javascript for a navigation menu that displays one tree. I am trying to make it so that there is a delay on the mouseout.
[CODE]
var DropDownMenu = Class.create();
DropDownMenu.prototype = {
initialize: function(menuElement) {
menuElement.childElements().each(function(node){
// if there is a submenu
var submenu = $A(node.getElementsByTagName(“ul”)).first();
if(submenu != null){
// make sub-menu invisible
Element.extend(submenu).setStyle({display: ‘none’});
// toggle the visibility of the submenu
node.onmouseover = node.onmouseout = function(){
Element.toggle(submenu);
}
}
});
}
};
?
I am trying to add a delay there on mouse out. I am a complete noob at javascript.
Any help would be appreciated. ?