Full version: jsB@nk » Browser » Window » Window Rotation
URL: https://www.javascriptbank.com/window-rotation.html
The effect makes the window spin continually.
Full version: jsB@nk » Browser » Window » Window Rotation
URL: https://www.javascriptbank.com/window-rotation.html
<script>// VARIABLES GLOBALES a=275; b=275; r=50; x=1;window.resizeTo(75,100);function rotateObjects(r) { for (var i = 0; i <360; i++) { x = (r * Math.cos((i * Math.PI)/180)) + a; y = (r * Math.sin((i * Math.PI)/180)) + b; window.moveTo(x,y); } //fin for} //fin funcion // while (r<=100) { for (r=60;r<=100;r+=1){ rotateTimer = setTimeout("rotateObjects(r)", 100);// r+= 10; } //fin while </script><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<body onload="rotateObject(r)"></body><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->