RE: Cool Javascript :P (tested on IE and FireFox)
Other trig functions give different effects.
javascript:x=0;e=document.body;e.style.position="absolute";function rt(){e.style.top=100-(50*Math.cos(x*Math.PI/180))+"px";e.style.left=100+(50*Math.sin(x*Math.PI/180))+"px";x+=5};setInterval("rt()",50);void(0);
Change the bolded parts to a combination of sin, cos, tan, asin, acos, or atan
This post was edited on 07-09-2006 at 10:08 PM by ddunk.
|