Template:Team:KIT-Kyoto/UnderBar
From 2014.igem.org
(Difference between revisions)
(9 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | $( | + | <!-- |
- | + | var SideMenuLine='<img src="https://static.igem.org/mediawiki/2014/4/40/KIT_pictures_line.png" class="line_d">'; | |
- | + | // --> | |
- | + | $(".s-menu li a").append(SideMenuLine).find(".line_d",this).width(0).hide(); | |
- | + | $(".s-menu a").hover(function(){ | |
- | + | if(!$(this).hasClass("select")){ | |
- | + | $(".line_d",this).stop().show().animate({width:"100%"},500,"easeOutExpo"); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | } | + | },function(){ |
- | + | if(!$(this).hasClass("select")){ | |
- | + | $(".line_d",this).stop().animate({width:0},500,"easeOutExpo",function(){$(this).hide();}); | |
- | + | //$("img",this).stop().animate({opacity:1},500); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | ); | + | }); |
+ | function nextNaviSet(contents){ | ||
+ | //ナビゲーションにクラスを付与 | ||
+ | $(".s-menu a.select .line_d").stop().width(0).hide(); | ||
+ | $(".s-menu a.select").removeClass("select"); | ||
+ | } | ||
</script> | </script> |
Latest revision as of 17:52, 20 May 2014