/ Published in: JavaScript
Simply jQuery script for CSS drop-down menu
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(document).ready(function() { //Main nav drop-downs $('#header ul li').each(function() { $(this).mouseover(function() { $(this).children('ul').css("display", "block"); }); $(this).mouseout(function() { $(this).children('ul').css("display", "none"); }); }); });