爱易网
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特效
页面五角星礼花效果
页面五角星礼花效果
日期:2014-05-18 浏览次数:20528 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<body>区域中 <!--[if IE ]> <style type="text/css"> body { overflow: hidden; } v\:* { behavior: url(#default#VML); } </style> <![endif]--> <!--[if IE ]> <script language="JavaScript"> colors = new Array(); // Define your own color combinations colors[0] = new Array('yellow', 'lime'); colors[1] = new Array('silver', 'green') colors[2] = new Array('silver', 'blue'); colors[3] = new Array('silver', 'purple'); colors[4] = new Array('purple', 'white'); colors[5] = new Array('blue', 'silver'); colors[6] = new Array('red', 'fuchsia'); colors[7] = new Array('yellow', 'red'); // Define the maximum number of fire arrows maximum = 1000; vmlobj=''; for(i = 0; i < 12; i++){ vmlobj += '<div id="ster'+i+'" style="position:absolute; left:-50px; top-50px; visibility:hidden; z-index:50;">'; vmlobj += '<v:shape style="width:15px; height:15px;" fillcolor="yellow" coordorigin="0,0" coordsize="200 200">'; vmlobj += '<v:path v="m 8,65 l 72,65, 92,11, 112,65, 174,65, 122,100, 142,155,92,121, 42,155, 60,100 x e"/>'; vmlobj += '<v:stroke on="false" /></v:shape></div>'; } document.write(vmlobj); vmlobj = null; aantal = 0; function begin() { try { if(aantal == maximum){ return;} kleurschema = Math.floor(Math.random() * colors.length); posLinks = Math.floor(Math.random() * (document.body.clientWidth - 180)); posLinks = (posLinks < 170)? 170: posLinks; posBoven = Math.floor(Math.random() * (document.body.clientHeight - 180)); posBoven = (posBoven < 170)? 170: posBoven; straal = 0; uiteen = true; teller = 1; flikkereffect = false; for(var i = 0; i < 12; i++){ document.getElementsByTagName('shape')[i].setAttribute('fillcolor', colors[kleurschema][0]); document.getElementById('ster'+i).style.visibility = 'hidden'; // 5.0 fix document.getElementById('ster'+i).style.left = posLinks; document.getElementById('ster'+i).style.top = posBoven; } document.getElementById('ster0').style.top = (document.body.clientHeight - 20); document.getElementById('ster0').style.visibility = 'visible'; omhoog(); } catch(e){} } function omhoog() { try { positie = parseInt(document.getElementById('ster0').style.top); if(positie > posBoven){ document.getElementById('ster0').style.top = (positie - 25); setTimeout('omhoog()', 50); } else { for(i = 1; i < 12; i++){ document.getElementById('ster'+i).style.top = positie; document.getElementById('ster'+i).style.visibility = 'visible'; } uiteenspatten(); } } catch(e){} } function uiteenspatten() { try { if(straal > 120 && straal % 10 == 0){ flikkereffect = true; teller = (teller == colors[kleurschema].length)? 0: (teller+1); } for(var i = 0; i < 12; i++){ var hoek = i * 30; var piHoek = Math.PI - Math.PI / 180 * hoek; var links = posLinks + Math.round(straal * Math.sin(piHoek)); var boven = positie + Math.round(straal * Math.cos(piHoek)); document.getElementById('ster'+i).style.left = links; document.getElementById('ster'+i).style.top = boven; if(flikkereffect){ document.getElementsByTagName('shape')[i].setAttribute('fillcolor', colors[kleurschema][teller]); } } if(straal < 160 && uiteen){ straal += (straal < 120)? 10: 5; setTimeout('uiteenspatten()', 50); } else if(straal > 120){ uiteen = false; straal -= 5; setTimeout('uiteenspatten()', 50); } else if(straal <= 120){ for(var i = 0; i < 12; i++){ document.getElementById('ster'+i).style.visibility = 'hidden'; } aantal++; setTimeout('begin()', 500); } } catch(e) {} } window.onload=begin;
上一篇:狡猾的按钮特效
下一篇:模拟下雪景象
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
论:三大运营商运用商店逆袭并非不能够
中国联通困局:遭遇OTT宽带4G三大难题
传诺基亚Lumia928下月推出 将与iPhone5看齐
频繁自杀 折射媒体变革中的媒体人迷茫与压力并存
阿里物流搭上邮政:京东,我们在终点等你!
中移动五大基地将整改成公司:被指易滋生腐败
携程整合去哪儿陷入僵局 欲联手老对手艺龙
广东移动高层受调查 中移动或现更大反腐风暴
苹果6月20日发布iPhone5S 触摸屏概念股生动
推荐阅读
更多>
余额宝收益率跌破5% 银行系宝宝收益率赶超
靠谱分析:6月发生的WWDC和谷歌I/O大会,将会出现哪些新产品?
全球网络遭史上最大规模攻击:攻击数据每秒300G
神州泰岳雪上加霜:副总违规买卖遭罚
国美痛批网购七宗罪 用短暂盈利输了未来
美国政府关门可能影响去哪儿等公司IPO
在线音乐出现“小米公司”不是没有可能
雅安地震救灾前线的科技之手 微弱而暖和
巨人网络回应央视 否认应用黑客停止诈骗
百视通:Xbox One汉化获批 游戏迷欢呼吧
腾讯微信昨晚再现大规模故障 多地受到影响
三大运营商合建铁塔公司真相:未涉及电信业重组
传搜狗估值12亿美元 与360谈判进入白热化
八位知名设计师评iOS7:新鲜但复杂
虚拟运营商前路迷茫 业界建议发力车联网
广电总局回应美剧下架:不是所有信息可公开
微信收费形式三选一 腾讯或变身运营商
逆转猜想:如果阿里成为雅虎大股东会怎样?
谷歌新技术进入iOS平台:将叫板苹果Siri
全球最具“颠覆性”特质的公司排行榜TOP25