Template:Team:KIT-Kyoto/UnderBar

From 2014.igem.org

(Difference between revisions)
Line 8: Line 8:
.clone()
.clone()
.find('>img').attr('src', function(){
.find('>img').attr('src', function(){
-
return $(this).attr('src').replace('_off', '_on')
+
return $(this).attr('a').replace('_off', '_on')
})
})
.end()
.end()
Line 18: Line 18:
function(e) {
function(e) {
$(this).find('a').eq(1).stop()
$(this).find('a').eq(1).stop()
-
.animate({width:$(this).find('img').width()}, {duration:300, easing:'easeOutExpo'});
+
.animate({width:$(this).find('a').width()}, {duration:300, easing:'easeOutExpo'});
},
},
function(e) {
function(e) {

Revision as of 14:10, 20 May 2014