HighDots Forums  

submenu sempre in evidenza

Javascript (Italian) Il linguaggio JavaScript (it.comp.lang.javascript)


Discuss submenu sempre in evidenza in the Javascript (Italian) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
fadilo@gmail.com
 
Posts: n/a

Default submenu sempre in evidenza - 10-21-2006 , 11:59 AM






come da oggetto vorrei modificare questo codice JS...:

<SCRIPT LANGUAGE="JavaScript">

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace("over", "");
}
}
}
}
}
window.onload=startList;

</SCRIPT>

....che gestisce uno slide menu, ma aggiungere una qualche funzione JS
che mi setta
all'evento onclick del mouse il submenu sempre visibile, anche dopo
aver rilasciato il cursore; e magari un'altra funzioncina timer che
dopo un tot di inattivitā del submenu appena aperto risetta alla
situazione iniziale il menu principale. Ecco questo č quello che
vorrei...spero di essermi spiegato.. ho davvero esigenza di realizzare
questo effetto grazie a tutti anticipatamente.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.