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 = $('.timg').index(this);
var tnum = $('.timg').index(this);
-
var s = $('.show').eq(tnum);
+
$('.show').eq(tnum).fadeOut();
-
var h = $('.hide').eq(tnum);
+
$('.hide').eq(tnum).fadeIn();
-
s.fadeOut();
+
-
h.fadeIn();
+
},
},
function(){
function(){
-
var s = $('.show').eq(tnum);
+
var tnum = $('.timg').index(this);
-
var h = $('.hide').eq(tnum);
+
$('.show').eq(tnum).fadeIn();
-
s.fadeIn();
+
$('.hide').eq(tnum).fadeOut();
-
h.fadeOut();
+
}
}
);
);

Revision as of 17:01, 10 October 2014


kit