Team:Gifu
From 2014.igem.org
(Difference between revisions)
Line 53: | Line 53: | ||
<img src="https://static.igem.org/mediawiki/2014/f/f6/Circular_rna.png"></img> | <img src="https://static.igem.org/mediawiki/2014/f/f6/Circular_rna.png"></img> | ||
<a id="menu1" href="#"><img src="https://static.igem.org/mediawiki/2014/d/d5/Gifu_renew_Project_.png" | <a id="menu1" href="#"><img src="https://static.igem.org/mediawiki/2014/d/d5/Gifu_renew_Project_.png" | ||
- | onmouseover="javascript: | + | onmouseover="javascript:stopmove1()" |
+ | onmouseout="javascript:startmove()" | ||
+ | ></img></a> | ||
+ | <a id="menu2" href="#"><img src="https://static.igem.org/mediawiki/2014/3/31/Gifu_renew_NOTE.png" | ||
+ | onmouseover="javascript:stopmove2()" | ||
+ | onmouseout="javascript:startmove()" | ||
+ | ></img></a> | ||
+ | <a id="menu3" href="#"><img src="https://static.igem.org/mediawiki/2014/c/cd/Gifu_renew_RESULT.png" | ||
+ | onmouseover="javascript:stopmove3()" | ||
+ | onmouseout="javascript:startmove()" | ||
+ | ></img></a> | ||
+ | <a id="menu4" href="#"><img src="https://static.igem.org/mediawiki/2014/c/cc/Gifu_renew_MORE.png" | ||
+ | onmouseover="javascript:stopmove4()" | ||
+ | onmouseout="javascript:startmove()" | ||
+ | ></img></a> | ||
+ | <a id="menu5" href="#"><img src="https://static.igem.org/mediawiki/2014/3/3c/Gifu_renew_TEAM.png" | ||
+ | onmouseover="javascript:stopmove5()" | ||
onmouseout="javascript:startmove()" | onmouseout="javascript:startmove()" | ||
></img></a> | ></img></a> | ||
- | |||
- | |||
- | |||
- | |||
<div id="point"> | <div id="point"> | ||
<img src="https://static.igem.org/mediawiki/2014/a/ac/Icon_more.png"></img> | <img src="https://static.igem.org/mediawiki/2014/a/ac/Icon_more.png"></img> | ||
Line 72: | Line 84: | ||
var circle =document.getElementById("point") ; | var circle =document.getElementById("point") ; | ||
var k=90; | var k=90; | ||
+ | var m; | ||
function spin(){ | function spin(){ | ||
AAA=setInterval(function(){ | AAA=setInterval(function(){ | ||
- | if(rad== | + | if(rad==360){rad=0;} |
else{rad+=2}; | else{rad+=2}; | ||
x=r*Math.cos(Math.PI/180*rad); | x=r*Math.cos(Math.PI/180*rad); | ||
Line 92: | Line 105: | ||
BBB=setInterval(function(){ | BBB=setInterval(function(){ | ||
rad+=2; | rad+=2; | ||
- | if(rad== | + | if(rad==m){rad-=2,k-=2}; |
if(rad>=360){rad=0}; | if(rad>=360){rad=0}; | ||
x=r*Math.cos(Math.PI/180*rad); | x=r*Math.cos(Math.PI/180*rad); | ||
Line 99: | Line 112: | ||
circle.style.left=x+200+"px"; | circle.style.left=x+200+"px"; | ||
- | if(rad== | + | if(rad==m){k-=2;} |
else{k+=2;}; | else{k+=2;}; | ||
if(k==360){k=0}; | if(k==360){k=0}; | ||
Line 107: | Line 120: | ||
}; | }; | ||
- | function | + | function stopmove1(){ |
+ | clearInterval(AAA); | ||
+ | m=270; | ||
+ | catching(); | ||
+ | }; | ||
+ | |||
+ | function stopmove2(){ | ||
+ | clearInterval(AAA); | ||
+ | m=342; | ||
+ | catching(); | ||
+ | }; | ||
+ | |||
+ | function stopmove3(){ | ||
+ | clearInterval(AAA); | ||
+ | m=54; | ||
+ | catching(); | ||
+ | }; | ||
+ | |||
+ | function stopmove4(){ | ||
+ | clearInterval(AAA); | ||
+ | m=126; | ||
+ | catching(); | ||
+ | }; | ||
+ | |||
+ | function stopmove5(){ | ||
clearInterval(AAA); | clearInterval(AAA); | ||
+ | m=198; | ||
catching(); | catching(); | ||
}; | }; |
Revision as of 02:05, 2 September 2014