Team:KIT-Kyoto/Test
From 2014.igem.org
(Difference between revisions)
Line 175: | Line 175: | ||
$('.hide').hide(); | $('.hide').hide(); | ||
- | $('. | + | $('.timg a').hover(function(){ |
- | $('.show | + | 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(){ | ||
- | + | s.fadeIn(); | |
- | + | h.fadeOut(); | |
} | } | ||
); | ); |
Revision as of 16:57, 10 October 2014