<HTML> <HEAD> <TITLE>Pages That Make You Dizzy</TITLE> </HEAD> <BODY BGCOLOR = "#FFFFFF"> <LAYER VISIBILITY = HIDE NAME = "n1"> <IMG HEIGHT = 72 WIDTH = 65 SRC = "1.gif"> </LAYER> <LAYER VISIBILITY = HIDE NAME = "n2"> <IMG HEIGHT = 80 WIDTH = 71 SRC = "2.gif"> </LAYER> <LAYER VISIBILITY = HIDE NAME = "n3"> <IMG HEIGHT = 72 WIDTH = 77 SRC = "3.gif"> </LAYER> <LAYER VISIBILITY = HIDE NAME = "n4"> <IMG HEIGHT = 69 WIDTH = 80 SRC = "4.gif"> </LAYER> <SCRIPT LANGUAGE = "JavaScript"> <!-- r = 160;// radius xoff = 180;// x offset yoff = 170;// y offset pi = Math.PI;// get pi inc = pi / 45; // degrees per rotation cycle lyr = new Array(); // define your layers 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() // run the function to start rotation! //--> </SCRIPT> </BODY> </HTML>