Template:KIT-Kyoto.Header
From 2012.igem.org
(Difference between revisions)
m |
|||
Line 3: | Line 3: | ||
<br> | <br> | ||
<br> | <br> | ||
- | < | + | |
- | <script type="text/javascript" src="http:// | + | |
+ | <a href="https://2012.igem.org/Main_Page"><img src="https://static.igem.org/mediawiki/2012/3/3f/Igem.png"class="iGEM" align="left" width="170" height="120"></a> | ||
+ | <img src="" class="KITlogo" align="right" width="170" height="120" title="KITlogo"> | ||
+ | |||
+ | </div> | ||
+ | <head> | ||
+ | <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | |||
$(function(){ | $(function(){ | ||
- | var | + | var setImg = '#viewer'; |
- | var | + | var fadeSpeed = 1500; |
- | + | var switchDelay = 5000; | |
- | + | ||
- | + | ||
- | + | ||
- | var | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | $(setImg).children('img').css({opacity:'0'}); | |
- | + | $(setImg + ' img:first').stop().animate({opacity:'1',zIndex:'20'},fadeSpeed); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | setInterval(function(){ | |
- | + | $(setImg + ' :first-child').animate({opacity:'0'},fadeSpeed).next('img').animate({opacity:'1'},fadeSpeed).end().appendTo(setImg); | |
- | + | },switchDelay); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | } | + | |
}); | }); | ||
- | |||
</script> | </script> | ||
- | + | ||
- | + | <style type="text/css"> | |
- | < | + | <!-- |
- | + | ◆CSS | |
- | + | #viewer { | |
- | </ | + | margin: 0 auto; |
+ | width: 900px; | ||
+ | height: 196px; | ||
+ | text-align: left; | ||
+ | overflow: hidden; | ||
+ | position: relative; | ||
+ | } | ||
+ | |||
+ | #viewer img { | ||
+ | top: 0; | ||
+ | left: 0; | ||
+ | position: absolute; | ||
+ | } | ||
+ | |||
+ | </style> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
<style type="text/css"> | <style type="text/css"> | ||
Line 181: | Line 147: | ||
</head> | </head> | ||
<body> | <body> | ||
+ | <body> | ||
+ | |||
+ | <div id="viewer"> | ||
+ | <img src="https://static.igem.org/mediawiki/2012/7/7e/KIT-KyotoA.jpg" width="900" height="191" alt="" /> | ||
+ | <img src="https://static.igem.org/mediawiki/2012/0/02/KIT-KyotoB.jpg" width="900" height="191" alt="" /> | ||
+ | <img src="https://static.igem.org/mediawiki/2012/9/9b/KIT-KyotoC.jpg" width="900" height="191" alt="" /> | ||
+ | <img src="https://static.igem.org/mediawiki/2012/2/29/KIT-KyotoD.jpg" width="900" height="191" alt="" /> | ||
+ | </div><!--/#viewer--> | ||
+ | |||
+ | |||
<BR><BR> | <BR><BR> | ||
Revision as of 04:38, 25 August 2012