Team:Gifu

From 2014.igem.org

(Difference between revisions)
Line 28: Line 28:
<a id="menu1" href="#"><img src="https://static.igem.org/mediawiki/2014/1/18/Gifu_menu_PROJECT.png"  
<a id="menu1" href="#"><img src="https://static.igem.org/mediawiki/2014/1/18/Gifu_menu_PROJECT.png"  
   onmouseover="javascript:stopmove()"
   onmouseover="javascript:stopmove()"
-
   onmouseout="javascript:startmove()"
+
    
></img></a>
></img></a>
<a id="menu2" href="#"><img src="https://static.igem.org/mediawiki/2014/8/84/Gifu_menu_NOTE.png" ></img></a>
<a id="menu2" href="#"><img src="https://static.igem.org/mediawiki/2014/8/84/Gifu_menu_NOTE.png" ></img></a>
Line 50: Line 50:
rad+=1;
rad+=1;
if(rad>=360){rad=0;}
if(rad>=360){rad=0;}
-
else{rad+=1;}
+
else{rad+=1;};
x=r*Math.cos(Math.PI/180*rad);
x=r*Math.cos(Math.PI/180*rad);
y=r*Math.sin(Math.PI/180*rad);
y=r*Math.sin(Math.PI/180*rad);
Line 64: Line 64:
function stopmove(){
function stopmove(){
-
clearInterval(AAA);
+
clearInterval(AAA)
-
BBB=setInterval(function(){
+
-
if(rad=270){rad+=0;}
+
-
else{rad+=1;}
+
-
x=r*Math.cos(Math.PI/180*rad);
+
-
y=r*Math.sin(Math.PI/180*rad);
+
-
circle.style.top=y+200+"px";
+
-
circle.style.left=x+200+"px";
+
-
k+=1;
+
-
if(k>=360){k=0};
+
-
circle.style.transform="rotate("+k+"deg)";
+
-
},10);
+
};
};
-
function startmove(){
 
-
clearInterval(BBB);
 
-
 
-
};
 
//-->  
//-->  

Revision as of 09:42, 1 September 2014

factory1