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