Template:Team:HokkaidoU Japan/About Us/JS
From 2014.igem.org
(Difference between revisions)
(Created page with "<html> <script style="text/javascript"> $(".member-click").click(function () { var i = $(".member-click").index(this) var p = $(".member-box").eq(i).offset().top...") |
|||
Line 8: | Line 8: | ||
return false; | return false; | ||
}); | }); | ||
+ | |||
+ | |||
+ | |||
+ | //オーバーレイを表示 | ||
+ | $("#show").click(function(){ | ||
+ | $("#overlay").show(500); | ||
+ | }); | ||
+ | //オーバーレイを隠す | ||
+ | $("#overlay").click(function(){ | ||
+ | $(this).hide(500); | ||
+ | }); | ||
+ | //イベントのバブリングを中止 | ||
+ | $("#content").click(function(e){ | ||
+ | e.stopPropagation(); | ||
+ | }); | ||
+ | |||
</script> | </script> | ||
</html> | </html> |
Revision as of 07:45, 29 September 2014