Team:Gifu
From 2014.igem.org
(Difference between revisions)
Line 47: | Line 47: | ||
rad+=1; | rad+=1; | ||
- | if(rad>=360){rad-= | + | if(rad>=360){rad-=0}; |
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 59: | Line 59: | ||
},10); | },10); | ||
+ | $(".menu1").mauseover(function(){crearInterval(function)(){rad+=1; | ||
+ | if(rad>=360){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-=1}; | ||
+ | circle.style.transform="rotate("+k+"deg)"; | ||
+ | |||
+ | },10);} | ||
}); | }); | ||
//--> | //--> | ||
+ | |||
+ | |||
+ | |||
</script> | </script> | ||
+ | |||
+ | |||
+ | |||
<noscript> | <noscript> | ||
Sorry... We use Javascript. | Sorry... We use Javascript. |
Revision as of 08:37, 31 August 2014