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( ...")
Newer edit →
(Created page with "$(document).ready( function(){ $("ul.subnav").parent().find("> a").append("<span> ▼</span>"); $("ul.topnav li").hover( ...")
Newer edit →
Revision as of 12:05, 6 August 2013
$(document).ready(
function(){
$("ul.subnav").parent().find("> a").append(" ▼");
$("ul.topnav li").hover(
function() {
// Hover over
$(this).parent().find("ul.subnav").hide();
$(this).find("ul.subnav").show();
// Hover out
$(this).hover(
function() {
},
function(){
$(this).find("ul.subnav").hide();
}
);
},
function(){
$(this).find("ul.subnav").hide();
}
); } );