Changeset 5353 in spip-zone
- Timestamp:
- Sep 14, 2006, 1:40:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/_squelettes_/menu_deroulant/menu_deroulant.js
r4407 r5353 3 3 * 4 4 * adapte de http://www.htmldog.com/articles/suckerfish/dropdowns/example/ 5 * et passe en jquery 5 6 * 6 7 */ 7 /*sfHover = function() {8 var sfEls = document.getElementById("nav").getElementsByTagName("li");9 for (var i=0; i<sfEls.length; i++) {10 sfEls[i].onmouseover=function() {11 this.className+=" sfhover";12 }13 sfEls[i].onmouseout=function() {14 this.className=this.className.replace(new RegExp(" sfhover\\b"), "");15 }16 }17 }*/18 //if (window.attachEvent) window.attachEvent("onload", sfHover);19 20 8 $(document).ready(function(){ 21 $(' li',document.getElementById("nav")).hover(9 $('#nav li').hover( 22 10 function(){$(this).addClass('sfhover')}, 23 11 function(){$(this).removeClass('sfhover')} 24 12 ); 25 13 });
Note: See TracChangeset
for help on using the changeset viewer.