for (var i = 1; i<=70; i++) { attachMovie("arrow", i, i); _root[i]._x = 50+i%10*50; _root[i]._y = Math.ceil(i/10)*50; _root[i].onMouseMove = function() { xsm = _root._xmouse-this._x; ysm = _root._ymouse-this._y; if (xsm<0) { this._rotation = Math.atan(ysm/xsm)*360/(2*Math.PI); } else { this._rotation = Math.atan(ysm/xsm)*360/(2*Math.PI)+180; } rr = 256*Math.abs(xsm)/550; gg = 256*Math.abs(ysm)/400; bb = Math.sqrt(rr*rr+gg*gg); myColor = new Color(this); myColor.setRGB(rr << 16 | gg << 8 | bb); updateAfterEvent(); }; } |
Word教程网 | Excel教程网 | Dreamweaver教程网 | Fireworks教程网 | PPT教程网 | FLASH教程网 | PS教程网 |
HTML教程网 | DIV CSS教程网 | FLASH AS教程网 | ACCESS教程网 | SQL SERVER教程网 | C语言教程网 | JAVASCRIPT教程网 |
ASP教程网 | ASP.NET教程网 | CorelDraw教程网 |