Template:Team:HokkaidoU Japan/JS
From 2014.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
<html> | <html> | ||
<script style="text/javascript"> | <script style="text/javascript"> | ||
+ | |||
+ | //ページ内スクロール | ||
+ | $(".menber_click").click(function () { | ||
+ | var i = $(".member_click").index(this) | ||
+ | var p = $(".member_introduction").eq(i).offset().top; | ||
+ | $('html,body').animate({ scrollTop: p }, 'fast'); | ||
+ | return false; | ||
+ | }); | ||
+ | |||
+ | |||
</script> | </script> | ||
</html> | </html> |
Revision as of 02:36, 22 August 2014