Template:Team:KIT-Kyoto/navi
From 2014.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
<html> | <html> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | $ | + | $(function() { |
- | + | $('#nav5 a') | |
- | + | //ボタンを-200で配置 | |
- | + | .each(function(){ | |
- | + | $(this).css('margin-left', '-200px') | |
- | + | }) | |
- | + | .hover( | |
- | + | function(){ | |
- | + | $(this).stop().animate({ | |
- | + | 'marginLeft':'0px' | |
- | + | },'fast'); | |
- | + | }, | |
- | + | function () { | |
- | + | $(this).stop().animate({ | |
- | + | 'marginLeft':'-200px' | |
- | + | },'slow'); | |
- | + | } | |
- | + | ); | |
- | + | }); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</script> | </script> |
Revision as of 08:51, 21 May 2014