Team:UNITN-Trento/JS/Subs/Header

From 2013.igem.org

Revision as of 12:34, 9 August 2013 by Ggirelli (Talk | contribs)

//Javascript here $(document).ready(function() {

//Open the submenu $("#tn-menu li").mouseenter(function(e) { alert(1); e.preventDefault(); $(this).children("ul").stop().slideDown(); });

//Close the submenu $("#tn-menu li").mouseleave(function(e) { e.preventDefault(); $(this).children("ul").stop().slideUp(); });

});