Team:KIT-Kyoto/Test

From 2014.igem.org

(Difference between revisions)
Line 179: Line 179:
});
});
 +
var tnum = $('.timg').index(this);
$('.hide').hide();
$('.hide').hide();
-
$('.show a').hover(function(){
+
$('.show a').eq(tnum).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().fadeIn();
$('.hide').eq(tnum).stop().fadeIn();
},
},
function(){
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().fadeOut();
$('.hide').eq(tnum).stop().fadeOut();

Revision as of 17:12, 10 October 2014


kit