Team:KIT-Kyoto/Test

From 2014.igem.org

(Difference between revisions)
Line 159: Line 159:
marign:0;
marign:0;
}
}
-
 
+
.show{
 +
z-index:3;
 +
}
 +
.hide{
 +
z-index:2;
 +
}
</style>
</style>
<script type="text/javascript">
<script type="text/javascript">
Line 177: Line 182:
$('.show a').hover(function(){
$('.show a').hover(function(){
var tnum = $('.hide a').index(this);
var tnum = $('.hide a').index(this);
-
$('.show').eq(tnum).stop().fadeOut();
+
$('.show').eq(tnum).stop().animate({opacity:'0'},200);
$('.hide').eq(tnum).stop().fadeIn();
$('.hide').eq(tnum).stop().fadeIn();
},
},
function(){
function(){
var tnum = $('.hide a').index(this);
var tnum = $('.hide a').index(this);
-
$('.show').eq(tnum).stop().fadeIn();
+
$('.show').eq(tnum).stop().animate({opacity:'0'},200);
$('.hide').eq(tnum).stop().fadeOut();
$('.hide').eq(tnum).stop().fadeOut();
}
}

Revision as of 17:10, 10 October 2014


kit