Template:Team:KIT-Kyoto/UnderBar

From 2014.igem.org

(Difference between revisions)
Line 2: Line 2:
<script type="text/javascript">
<script type="text/javascript">
$('#SideMenu li')
$('#SideMenu li')
-
.each(function(){
 
-
var $li = $(this);
 
-
if ($li.has('a')) {
 
-
$li.find('a')
 
-
.clone()
 
-
.find('>a').attr('src', function(){
 
-
return $(this).attr('a').replace('_off', '_on')
 
-
})
 
-
.end()
 
-
.css('width', 0)
 
-
.appendTo($li)
 
-
}
 
-
})
 
.hover(
.hover(
function(e) {
function(e) {
$(this).find('a').eq(1).stop()
$(this).find('a').eq(1).stop()
-
.animate({width:$(this).find('a').width()}, {duration:300, easing:'easeOutExpo'});
+
.animate({width:$(this).find('src').width()}, {duration:300, easing:'easeOutExpo'});
},
},
function(e) {
function(e) {

Revision as of 16:14, 20 May 2014