Team:KIT-Kyoto/Test
From 2014.igem.org
(Difference between revisions)
Line 177: | Line 177: | ||
$('.timg a').hover(function(){ | $('.timg a').hover(function(){ | ||
var tnum = $('.hide').index(this); | var tnum = $('.hide').index(this); | ||
- | $('.show').eq(tnum).fadeOut(); | + | $('.show').eq(tnum).stop().fadeOut(); |
- | $('.hide').eq(tnum).fadeIn(); | + | $('.hide').eq(tnum).stop().fadeIn(); |
}, | }, | ||
function(){ | function(){ | ||
var tnum = $('.hide').index(this); | var tnum = $('.hide').index(this); | ||
- | $('.show').eq(tnum).fadeIn(); | + | $('.show').eq(tnum).stop().fadeIn(); |
- | $('.hide').eq(tnum).fadeOut(); | + | $('.hide').eq(tnum).stop().fadeOut(); |
} | } | ||
); | ); |
Revision as of 17:02, 10 October 2014