爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
Canvas制作的一款五角星转动特效代码
Canvas制作的一款五角星转动特效代码
日期:2014-05-18 浏览次数:20124 次
以下是程序代码
<!DOCTYPE html> <html> <head> <script type="text/javascript"> (function(){var global=this;var _break=new Error('internal break signal');function register(obj,type,name,value){if(type=="public")obj.prototype[name]=value;else if(type=="static")obj[name]=value;else if(type=="constructor"&&obj.constructor_)obj.constructor_(value);}function cp(target,source,deep){if(deep){for(var key in source){if(source[key]&&typeof source[key]=='object'){target[key]=cp({},source[key]);}else target[key]=source[key];}}else{for(var key in source){target[key]=source[key];}}return target;}function createClass(constructor,parentClass){var F,re;re=function(){if(constructor)return constructor.apply(this,arguments);};re.constructor_=function(v){if(arguments.length==1)constructor=v;return constructor;};re.inherit=function(v){parentClass=v;F=new Function();F.prototype=parentClass.prototype;re.prototype=new F();re.prototype.constructor=re;re.prototype.Class=re;re.prototype.parentClass=parentClass;};if(parentClass)re.inherit(parentClass);else re.prototype.Class=re;re.prototype.su=function(args){if(this.parentClass&&this.parentClass.constructor_&&this.parentClass.constructor_()){var c=this.parentClass.constructor_();this.Class=this.parentClass;this.parentClass=this.parentClass.prototype.parentClass;var re=c.apply(this,args||[]);delete this.Class;delete this.parentClass;return re;}};re.prototype.callSuper=function(methodName,args){if(this.parentClass&&this.parentClass.prototype[methodName]){var c=this.parentClass.prototype[methodName];this.Class=this.parentClass;this.parentClass=this.parentClass.prototype.parentClass;var re=c.apply(this,args||[]);delete this.Class;delete this.parentClass;return re;}};return re;};function namespace(ns,fn){var scope=$(ns);if(typeof fn=="function")fn.apply(scope);return scope;function $(ns){var scope=global,obj;if(typeof ns=="function")return ns;if(ns&&ns.split)ns=ns.split(".");else ns=[];for(var i=0;i<ns.length;i++)if(ns[i]){if(!scope[ns[i]]){register(scope,"static",ns[i],createClass());scope[ns[i]].displayName=ns[i];scope[ns[i]].displayPath=ns.slice(0,i+1).join(".");}scope=scope[ns[i]];}return scope;}}namespace("hjf.lib.uid",function(){var thisClass=this;register(this,"constructor","uid",uid);var index=0;function uid(complex,prefix){if(complex)return(prefix||'u')+(new Date()).getTime().toString(36)+"_"+(Math.random()*0xfffffff|0).toString(36);else return(prefix||'u')+(++index).toString(36);}});namespace("hjf.util.ArrayList",function(){var thisClass=this;register(this,"constructor","init",init);register(this,"public","reset",reset);register(this,"public","load",load);register(this,"public","push",push);register(this,"public","pop",pop);register(this,"public","insert",insert);register(this,"public","insertBefore",insertBefore);register(this,"public","remove",remove);register(this,"public","removeItem",removeItem);register(this,"public","item",item);register(this,"public","indexOf",indexOf);register(this,"public","contains",contains);register(this,"public","length",length);register(this,"public","moveFirst",moveFirst);register(this,"public","moveLast",moveLast);register(this,"public","eof",eof);register(this,"public","first",first);register(this,"pub
上一篇:狡猾的按钮特效
下一篇:一款转动随机数抽奖的JS特效代码
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
百度“全网寻人”面前的互联网信息枢纽价值
从3G牌照发放看中国4G规划效果
阿朗力避步北电后尘 急切停止自我革新
HDS发布《2013中国CIO洞察白皮书》
联想国庆完成收购IBM x86服务器
机器人进一步取代人类:将进军白领任务
去看看外面的世界吧!别窝里斗了,中国在线旅游商们
携程艺龙联手死磕同程 价钱烽烟蔓延至机票
FDD牌照短期不会发放 联通电信暗自提速建网
推荐阅读
更多>
联想国庆完成收购IBM x86服务器
北京电信推“0月租卡”,同网通话免费
佳能利润大跌三成 智能终端倒逼相机厂商转型
成本效益全兼顾 混合云市场前景显现
Twitter收购印度手机营销公司ZipDial
富士康欲用机器人产iPhone 6
解读苹果收购Beats背后动机:库克在想什么?
挂号网高管团体离任 或因投资人失掉决计
电信业营改增今起实施 运营商短期利润骤降
传搜狗估值12亿美元 与360谈判进入白热化
高德百度地图免费背后:李彦宏暗斗马云周鸿祎
固话上网卡或将实名制 运营商泄露用户信息将被罚
微软不会被颠覆
国内首个大数据系列指数今日发布
京东进驻微信一级入口或影响自身战略布局
估值增长9.8% 阿里IPO前市值达2450亿美元
微软提示XP只剩365天寿命:用户被绑架?
网络视频的几大趋势将成视频玩家躲不开的发力点
靠价格战赚取资费套餐利润差,虚拟运营商必死无疑
阿里收购UC 五年姻缘换来移动新格局