Team:Gifu
From 2014.igem.org
(Difference between revisions)
Line 26: | Line 26: | ||
<div id="base"> | <div id="base"> | ||
<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/1/18/Gifu_menu_PROJECT.png" onmouseover="javascript: | + | <a id="menu1" href="#"><img src="https://static.igem.org/mediawiki/2014/1/18/Gifu_menu_PROJECT.png" onmouseover="javascript:stopmove()"></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> | ||
<div id="point"> | <div id="point"> | ||
Line 44: | Line 44: | ||
$(document).ready(function () { | $(document).ready(function () { | ||
- | setInterval(function(){ | + | AAA=setInterval(function(){ |
rad+=1; | rad+=1; | ||
- | if(rad>= | + | if(rad>=270){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 60: | Line 60: | ||
}); | }); | ||
- | function | + | function stopmove(){ |
- | + | clearInterval(AAA); | |
+ | BBB=setInterval(function(){ | ||
+ | rad+=1; | ||
+ | if(rad>=270){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); | ||
+ | |||
+ | |||
}; | }; | ||
Revision as of 09:16, 1 September 2014