Team:BIT-China/js/nav.js
From 2013.igem.org
(Difference between revisions)
Singlewindy (Talk | contribs) (Created page with "$(document).ready( function(){ $("ul.subnav").parent().find("> a").append("<span> ▼</span>"); $("ul.topnav li").hover( ...") |
Singlewindy (Talk | contribs) |
||
(One intermediate revision not shown) | |||
Line 1: | Line 1: | ||
- | $(document).ready( | + | $(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();});});