Team:TCU Taiwan/Team
From 2014.igem.org
Line 8: | Line 8: | ||
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/smoothness/jquery-ui.css"> | <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/smoothness/jquery-ui.css"> | ||
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script> | <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script> | ||
+ | |||
+ | <SCRIPT LANGUAGE="JavaScript"> | ||
+ | NewImg = new Array ( | ||
+ | "https://static.igem.org/mediawiki/2014/1/1a/TCU-Team-logo.png", | ||
+ | "https://static.igem.org/mediawiki/2014/c/c2/TCU-Logo-up.png", | ||
+ | "https://static.igem.org/mediawiki/2014/b/b7/2014placeholderimage.jpg", | ||
+ | "https://static.igem.org/mediawiki/2014/1/1a/TCU-Team-logo.png" | ||
+ | ); | ||
+ | var ImgNum = 0; | ||
+ | var ImgLength = NewImg.length - 1; | ||
+ | var delay = 2000; | ||
+ | var lock = false; | ||
+ | var run; | ||
+ | function chgImg(direction) { | ||
+ | if (document.images) { | ||
+ | ImgNum = ImgNum + direction; | ||
+ | if (ImgNum > ImgLength) { | ||
+ | ImgNum = 0; | ||
+ | } | ||
+ | if (ImgNum < 0) { | ||
+ | ImgNum = ImgLength; | ||
+ | } | ||
+ | document.slideshow.src = NewImg[ImgNum]; | ||
+ | } | ||
+ | } | ||
+ | function auto() { | ||
+ | if (lock == true) { | ||
+ | lock = false; | ||
+ | window.clearInterval(run); | ||
+ | } | ||
+ | else if (lock == false) { | ||
+ | lock = true; | ||
+ | run = setInterval("chgImg(1)", delay); | ||
+ | } | ||
+ | } | ||
+ | |||
+ | </script> | ||
+ | |||
</head> | </head> | ||
<body> | <body> | ||
Line 218: | Line 256: | ||
<!-- Here you can place and image of your team --> | <!-- Here you can place and image of your team --> | ||
- | <td width="60%" > <img src="https://static.igem.org/mediawiki/2014/ | + | <td width="60%" > |
+ | |||
+ | |||
+ | |||
+ | <table border="0" cellpadding="4" cellspacing="0" width="44%"> | ||
+ | <tr> | ||
+ | <td width="100%" valign="middle" align="center"> | ||
+ | |||
+ | <img src="https://static.igem.org/mediawiki/2014/1/1a/TCU-Team-logo.png" name="slideshow" width="300" height="225"> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td width="100%" valign="middle" align="center"> | ||
+ | <div align="center"> | ||
+ | <table border="0" cellpadding="0" cellspacing="0" width="229"> | ||
+ | <tr> | ||
+ | <td align="center" width="76" valign="middle"><a href="javascript:chgImg(-1)">上一張</a></td> | ||
+ | <td align="center" width="76" valign="middle"><a href="javascript:auto()">自動‧停止</a></td> | ||
+ | <td align="center" width="77" valign="middle"><a href="javascript:chgImg(1)">下一張</a></td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | |||
+ | </td> | ||
<tr ><td coslpan="2" height="35px"></td></tr> | <tr ><td coslpan="2" height="35px"></td></tr> | ||
</tr> | </tr> |
Revision as of 15:30, 18 September 2014
|