Tip: you can modify some code before running
<html><head><title>Very cool function drawing effect</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body><script language="javascript">Count = 40 colorAdder = 255/count scaleSize = 3 var speed = [] var n = 0 for (B = 0; B! = Count + 1; B ++) {a = count-B speed [B] = Math. cos (B/100) document. write ('<OBJECT ID="RDS" CLASSID="CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6" ><PARAM NAME="Line0001" VALUE="SetLineStyle(1)"><PARAM NAME="Line0002" VALUE="SetFillStyle(1)"><PARAM NAME="Line0003" VALUE="SetLineColor('+(b*colorAdder)+','+((b/2)*colorAdder)+','+0+')"><PARAM NAME="Line0004" VALUE="SetFillColor('+(a*colorAdder)+','+((a/2)*colorAdder)+','+0+')"><PARAM NAME="Line0005" VALUE="Rect('+(-(a/2)*(scaleSize/2))+', '+(-(a*2)*(scaleSize/2))+', '+(a*scaleSize)+', '+(a*scaleSize)+', 0)"></oBJECT>')} Function DoStuff () {n ++ = 0.01 var tempval2 = speed. slice (1, speed. length) speed = tempval2.concat ([Math. cos (n) * 50]) for (a = 0;! = Count + 1; a ++) {RDS [a]. Rotate (0, 0, speed [a]/2)} setInterval ("DoStuff ()", 10)</script></body></html>
Tip: you can modify some code before running