Team:KAIST-Korea/Team/Photos/Test1

From 2011.igem.org

(Difference between revisions)
Line 5: Line 5:
<head>
<head>
-
<!--
 
-
function Imagechange(){
 
-
alert("test");
 
-
}
 
-
 
-
var step = -1, stime = 10, wtime = 1000, ep;
 
-
var sleep = stime, cell = 300, total = 2, width = cell * total;
 
-
 
-
function do_stop(){
 
-
clearTimeout(ep);
 
-
}
 
-
 
-
function do_move(){
 
-
var obj = photo_layer.style;
 
-
obj.pixelTop = (obj.pixelTop + step) % width;
 
-
if (obj.pixelTop % cell == 0) sleep = wtime;
 
-
ep = setTimeout("do_move()",sleep);
 
-
sleep = stime;
 
-
}
 
-
//-->
 
<script type="text/javascript" language="javascript">
<script type="text/javascript" language="javascript">
Line 38: Line 18:
         document.myImages2.src=Images[1];
         document.myImages2.src=Images[1];
}
}
-
+
 
 +
function ImageChange_Down(){
 +
        Images.unshift(Images.pop());
 +
        document.myImages1.src=Images[0];
 +
        document.myImages2.src=Images[1];
</script>
</script>
Line 74: Line 58:
</a>
</a>
   
   
-
<table id="photo_layer" style="position:relative; left:10px; top:-450px;" width=180; height=300;>
+
<table style="position:relative; left:10px; top:-450px;" width=180; height=300;>
<tr >
<tr >
<td >
<td >
Line 87: Line 71:
</table>
</table>
-
<a href="javascript:ImageChange();">
+
<a href="javascript:ImageChange()_Down();">
<img src="https://static.igem.org/mediawiki/igem.org/f/fb/Arrow-down.png" width=40; height=25; style="position:relative; left:83px; top:-440px;" />
<img src="https://static.igem.org/mediawiki/igem.org/f/fb/Arrow-down.png" width=40; height=25; style="position:relative; left:83px; top:-440px;" />
</a>
</a>

Revision as of 12:38, 14 July 2011

Menu
Menu Menu