ANIMACIA 4 GULICIEK

ID
Nazov / Name:
Popis / Description:
Dlzka / Length:
Testovane pod / Tested under:

 

063
p063.html / p063.zip
4 obrazky sa otacuju po kruhu
1171b
NN 4.04

UKAZKA / CLICK HERE

Zdrojovy tvar / Source code:

<HTML> <HEAD> <TITLE> JavaScript DESTINATION - P063 </TITLE> </HEAD> <BODY> <LAYER VISIBILITY = HIDE NAME = "n1"> <IMG HEIGHT = 26 WIDTH = 26 SRC = "images/1a.gif"> </LAYER> <LAYER VISIBILITY = HIDE NAME = "n2"> <IMG HEIGHT = 26 WIDTH = 26 SRC = "images/2a.gif"> </LAYER> <LAYER VISIBILITY = HIDE NAME = "n3"> <IMG HEIGHT = 26 WIDTH = 26 SRC = "images/3a.gif"> </LAYER> <LAYER VISIBILITY = HIDE NAME = "n4"> <IMG HEIGHT = 26 WIDTH = 26 SRC = "images/4a.gif"> </LAYER> <SCRIPT LANGUAGE = "JavaScript"> <!-- r = 90; xoff = 180; yoff = 170; pi = Math.PI; inc = pi / 45; lyr = new Array(); lyr[0] = document.layers["n1"]; lyr[1] = document.layers["n2"]; lyr[2] = document.layers["n3"]; lyr[3] = document.layers["n4"]; var pos = new Array(); pos[0] = 0; for (i = 1; i < lyr.length; i++) { pos[i] = parseFloat(pos[i - 1] + ((2 * pi) / lyr.length)); } function rotateThings() { for (i = 0; i < pos.length; i++) { pos[i] += inc; lyr[i].visibility = "show"; lyr[i].moveTo((r * Math.cos(pos[i])) + xoff, (r * Math.sin(pos[i])) + yoff); } setTimeout ("rotateThings()", 75); } rotateThings() //--> </SCRIPT> </BODY> </HTML>
[ Navrat / BACK ]