Team:KIT-Kyoto/Test

From 2014.igem.org

(Difference between revisions)
Line 175: Line 175:
$('.hide').hide();
$('.hide').hide();
-
$('.show a').hover(function(){
+
$('.timg a').hover(function(){
-
$('.show img').fadeOut();
+
var tnum = $('timg').index(this);
-
$('.hide').fadeIn();
+
var s = $('.show').eq(tnum);
 +
var h = $('.hide').eq(tnum)
 +
s.eq(tnum).fadeOut();
 +
h.fadeIn();
},
},
function(){
function(){
-
$('.show img').fadeIn();
+
s.fadeIn();
-
$('.hide').fadeOut();
+
h.fadeOut();
}
}
);
);

Revision as of 16:57, 10 October 2014


kit