Template:Team:HokkaidoU Japan/About Us/JS
From 2014.igem.org
(Difference between revisions)
Line 10: | Line 10: | ||
}); | }); | ||
- | $(".show"). | + | $(".show").hover(function(){ |
var number =$(".show").index(this); | var number =$(".show").index(this); | ||
$(".overlay").eq(number).show(500); | $(".overlay").eq(number).show(500); | ||
+ | }, function() { | ||
+ | $(".overlay").eq(number).hide(500); | ||
+ | }; | ||
}); | }); | ||
- | $(".overlay"). | + | /* |
+ | $(".overlay").(function(){ | ||
$(this).hide(500); | $(this).hide(500); | ||
}); | }); | ||
- | + | */ | |
+ | |||
$(".overlay-content").click(function(e){ | $(".overlay-content").click(function(e){ | ||
e.stopPropagation(); | e.stopPropagation(); |
Revision as of 07:39, 3 October 2014