<LAYER VISIBILITY = HIDE NAME = "n1"> <img src="pictures/java_script_library_button.gif" width="138" height="138"> </LAYER> <LAYER VISIBILITY = HIDE NAME = "n2"> <img src="pictures/jt_webdesign_studio_button.gif" width="138" height="138"> </LAYER> <LAYER VISIBILITY = HIDE NAME = "n3"> <img src="pictures/java_script_library_button.gif" width="138" height="138"> </LAYER> <LAYER VISIBILITY = HIDE NAME = "n4"> <img src="pictures/jt_webdesign_studio_button.gif" width="138" height="138"> </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> |