Team:UNITN-Trento/JS/Subs/Header

From 2013.igem.org

Revision as of 08:42, 8 July 2013 by Ggirelli (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

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

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

});