Team:KIT-Kyoto/Test

From 2014.igem.org

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

Revision as of 17:04, 10 October 2014


kit