Team:BIT-China/js/nav.js

From 2013.igem.org

(Difference between revisions)
 
Line 1: Line 1:
-
$(document).ready(function(){$("ul.subnav").parent().find("> a").append("<span> ▼</span>"),$("ul.topnav li").hover(function(){$(this).parent().find("ul.subnav").hide(),$(this).find("ul.subnav").show(),$(this).hover(function(){},function(){$(this).find("ul.subnav").hide()})},function(){$(this).find("ul.subnav").hide()})})
+
$(document).ready(function(){$("ul.subnav").parent().find("> a").append("<span> ▼</span>");$("ul.topnav li").hover(function(){$(this).parent().find("ul.subnav").hide();$(this).find("ul.subnav").show();$(this).hover(function(){},function(){$(this).find("ul.subnav").hide();});},function(){$(this).find("ul.subnav").hide();});});

Latest revision as of 02:28, 26 September 2013

$(document).ready(function(){$("ul.subnav").parent().find("> a").append("");$("ul.topnav li").hover(function(){$(this).parent().find("ul.subnav").hide();$(this).find("ul.subnav").show();$(this).hover(function(){},function(){$(this).find("ul.subnav").hide();});},function(){$(this).find("ul.subnav").hide();});});