Team:HIT-Harbin/js/main.js

From 2014.igem.org

Revision as of 04:27, 15 October 2014 by Newyear (Talk | contribs)

function sideMenu(x){ var arr=document.getElementsByName("rnav"); var y=x-1; for(var i=0;i<6;i++){

 if(i==y){
 arr[i].style.display = "block"; 

}

 else{
 arr[i].style.display = "none"; 

} } }


$(document).ready(function(){

$(function(){	$("ul.nav1").hide();		$(".nav1").hover(function(){		$(this).find("ul").stop(true,true);		$(this).find("ul").slideDown();	},function(){		$(this).find("ul").stop(true,true);		$(this).find("ul").slideUp();	});	})
 });

$(document).ready(function(){

$(function(){	$("ul.rnav1").hide();		$(".rnav1").hover(function(){		$(this).find("ul").stop(true,true);		$(this).find("ul").slideDown();	},function(){		$(this).find("ul").stop(true,true);		$(this).find("ul").slideUp();	});	})
 });