您好!欢迎您光临转动的字 _迎客松B站!

体育

I

交友

I

论坛

I

会员注册

I

本站搜索

I

收藏本站

当前位置:首页 >>>素材收藏>>>HTML素材>>>转动的字
转动的字
发表日期:2007/6/5 9:24:00 出处:未知 作者:未知 发布人:hsb345 已被访问 1693

转动的字

显示:

<SCRIPT language=javascript>function lib2bwcheck(){this.ver=navigator.appVersion;this.agent=navigator.userAgent;this.dom=document.getElementById?1:0;this.opera5=this.agent.indexOf("Opera 5")>-1;this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;this.ie4=(document.all && !this.dom && !this.opera5)?1:0;this.ie=this.ie4||this.ie5||this.ie6;this.mac=this.agent.indexOf("Mac")>-1;this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0;this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5);return this;}var bw=new lib2bwcheck();var px = bw.ns4||window.opera?"":"px";function run() {var cx, cy, a;var css, obj, nest, ooo;if ((document.all) && (!bw.opera5)) {movy = document.body.clientHeight-64;movx = document.body.clientWidth-50;} else {movx = window.innerWidth-50; movy = window.innerHeight-64;}for (var i=0; i<maxitems; i++) {cx = Math.round( (sxfrom + Math.cos(i*Math.PI*oy/(50*maxitems)+ox)*sxto)*movx/100 );cy = Math.round( (syfrom + Math.sin(i*Math.PI*oy/(50*maxitems)+ox)*syto)*movy/100 );if (bw.ns4) {ooo = eval("document.s"+i);ooo.moveTo(cx, cy);} else {obj = "s"+i; nest="";css= bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+"document.layers." +obj):0;css.left = cx; css.top = cy;}}oy+=yspeed; if (oy>sdto || oy<sdfrom) { yspeed=-yspeed; oy+=yspeed;}ox+=xspeed;setTimeout("run()",tpause);}var sxfrom=50;var sxto=40;var syfrom=50;var syto=20;var sdfrom=50;var sdto=100;var yspeed=1;var xspeed=4;var pcol=Number(255).toString(16);var tpause=20;var schar="翠柏欢迎您的光临,希望您在这里开心快乐!!!";var maxitems = schar.length;var t=0;t = pcol.length;for (var i=0; i<6-t; i++) pcol = "0"+pcol;if (document.all) {movy = document.body.clientHeight-64;movx = document.body.clientWidth-50;} else {movx = window.innerWidth-50;movy = window.innerHeight-64;}var ox, oy;ox=Math.PI; oy=sdfrom;xspeed = xspeed*Math.PI/180;pa = new Array();for (var i=0; i<maxitems; i++) {document.writeln("<div id=s"+i+" style=position:absolute;top:280;z-index:3;>");document.writeln("<table style=filter:glow(color=#ff0000 strength=1)><th><font color=#ffffcc face=楷体_gb2312 style=font:39pt>"+schar.substr(i,1)+"</font></th></table>");document.writeln("</div>");}setTimeout("run()",tpause);</SCRIPT> 

显示:

双击自动滚屏 【打印本页】 【关闭窗口
 相关评论:

没有相关评论

 发表评论:

身份选择:会员 游客(游客不需要输入密码)
用 户 名: 密 码:
评论内容:
(最多评论字数:500)

迎客松B站 | 设为首页 | 加入收藏 | 联系我们 | 进入管理 | 关于站长 | 本站搜索

联系电话: 联系人:翠柏

琼icp备09005167