Team:Gifu
From 2014.igem.org
(Difference between revisions)
Line 44: | Line 44: | ||
$(document).ready(function () { | $(document).ready(function () { | ||
- | + | setInterval(function(){ | |
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 60: | Line 60: | ||
$(".menu1").mouseover(function(){ | $(".menu1").mouseover(function(){ | ||
- | + | if(rad>=360){rad-=1} | |
}); | }); | ||
Revision as of 08:55, 31 August 2014