Difference between revisions of "Team:HSNU-TAIPEI/HP/Material/PPT"
Daisy880304 (Talk | contribs) |
|||
Line 190: | Line 190: | ||
<div> | <div> | ||
<h3><font color="#00DB00"><strong>PPT</strong></font></h3> | <h3><font color="#00DB00"><strong>PPT</strong></font></h3> | ||
+ | <script language =javascript > | ||
+ | var curIndex=0; | ||
+ | //时间间隔(单位毫秒),每秒钟显示一张,数组共有5张图片放在Photos文件夹下。图片路径可以是绝对路径或者相对路径 | ||
+ | var timeInterval=1000; //时间1秒 | ||
+ | var arr=new Array(); | ||
+ | arr[0]="https://static.igem.org/mediawiki/2015/5/57/PPT-0001.jpg"; | ||
+ | arr[1]="https://static.igem.org/mediawiki/2015/0/0a/PPT-0002.jpg"; | ||
+ | arr[2]="https://static.igem.org/mediawiki/2015/a/a9/PPT-0003.jpg"; | ||
+ | arr[3]="https://static.igem.org/mediawiki/2015/4/49/PPT-0004.jpg"; | ||
+ | arr[4]="https://static.igem.org/mediawiki/2015/d/d6/PPT-0005.jpg"; | ||
+ | setInterval(changeImg,timeInterval); | ||
+ | function changeImg() | ||
+ | { | ||
+ | var obj=document.getElementById("obj"); | ||
+ | if (curIndex==arr.length-1) | ||
+ | { | ||
+ | curIndex=0; | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | curIndex+=1; | ||
+ | } | ||
+ | obj.src=arr[curIndex]; | ||
+ | } | ||
+ | </script> | ||
+ | <img id=obj src="img/logo.gif" width=200 height=150 border=0> | ||
| | ||
<img src="https://static.igem.org/mediawiki/2015/5/57/PPT-0001.jpg" | <img src="https://static.igem.org/mediawiki/2015/5/57/PPT-0001.jpg" |
Revision as of 14:29, 6 September 2015