Team:Gifu

From 2014.igem.org

(Difference between revisions)
(Undo revision 89563 by Fukufuku (talk))
Line 50: Line 50:
<script type="text/javascript">
<script type="text/javascript">
<!--
<!--
-
var rad = 350,
+
var r = 250;
-
    rad02 = 0,
+
var rad = 100;
-
    rad03 = 180,
+
var x ;
-
    x,
+
var y ;
-
    y,
+
var circle =document.getElementByid("point");
-
    circle = document.getElementById('circle'),
+
var guruguru;
-
    circle02 = document.getElementById('circle02');
+
-
(function timer() {
 
-
    setTimeout( function() {
 
-
        x = 100 * Math.cos(Math.PI/180 * rad);
 
-
        y = 100 * Math.sin(Math.PI/180 * rad);
 
-
        circle.style.top = x + 125 +'px';
 
-
        circle.style.left = y + 125 +'px';
 
-
        rad += 5;
 
-
        if(rad >= 360){ rad = 0;}
 
-
        timer();
 
-
    }, 10);
 
-
})();
 
 +
circle.style.left = "700px";
 +
circle.style.top = 700 + "px";
 +
   
-
(function timer02() {
+
-
    setTimeout( function() {
+
-
        x = 50 * Math.cos(Math.PI/180 * rad02);
+
-
        y = 120 * Math.sin(Math.PI/180 * rad02);
+
 
-
        circle02.style.top = x + 125 +'px';
+
//-->
-
        circle02.style.left = y + 125 +'px';
+
-
        rad02 += 3;
+
-
        if(rad02 >= 360){ rad02 = 0;}
+
-
        timer02();
+
-
    }, 10);
+
-
})(); //-->
+
</script>
</script>
</body>
</body>
</html>
</html>

Revision as of 08:58, 27 August 2014

factory1