***鼠标特效***跟随鼠标旋转的七彩环背景用黑色方显酷色
把下列代码加到网页的<body></body>标签之间 从google下载我的照片管理软件脚本说明:
把如下代码加入<body>区域中
<layer name="a0" left=10 top=10 visibility=show bgcolor="#ffffff" clip="0,0,1,1"></layer>
<layer name="a1" left=10 top=10 visibility=show bgcolor="#fff000" clip="0,0,1,1"></layer>
<layer name="a2" left=10 top=10 visibility=show bgcolor="#ffa000" clip="0,0,1,1"></layer>
<layer name="a3" left=10 top=10 visibility=show bgcolor="#ff00ff" clip="0,0,1,1"></layer>
<layer name="a4" left=10 top=10 visibility=show bgcolor="#00ff00" clip="0,0,1,1"></layer>
<layer name="a5" left=10 top=10 visibility=show bgcolor="#ff00ff" clip="0,0,1,1"></layer>
<layer name="a6" left=10 top=10 visibility=show bgcolor="#ff0000" clip="0,0,1,1"></layer>
<layer name="a7" left=10 top=10 visibility=show bgcolor="#ffffff" clip="0,0,2,2"></layer>
<layer name="a8" left=10 top=10 visibility=show bgcolor="#fff000" clip="0,0,2,2"></layer>
<layer name="a9" left=10 top=10 visibility=show bgcolor="#ffa000" clip="0,0,2,2"></layer>
<layer name="a10" left=10 top=10 visibility=show bgcolor="#ff00ff" clip="0,0,2,2"></layer>
<layer name="a11" left=10 top=10 visibility=show bgcolor="#00ff00" clip="0,0,2,2"></layer>
<layer name="a12" left=10 top=10 visibility=show bgcolor="#0000ff" clip="0,0,2,2"></layer>
<layer name="a13" left=10 top=10 visibility=show bgcolor="#ff0000" clip="0,0,3,3"></layer>
<div id="starsdiv" style="position:absolute;top:0px;left:0px">
<div style="position:relative;width:1px;height:1px;background:#ffffff;font-size:1px;visibility:visible"></div>
<div style="position:relative;width:1px;height:1px;background:#fff000;font-size:1px;visibility:visible"></div>
<div style="position:relative;width:1px;height:1px;background:#ffa000;font-size:1px;visibility:visible"></div>
<div style="position:relative;width:1px;height:1px;background:#ff00ff;font-size:1px;visibility:visible"></div>
<div style="position:relative;width:1px;height:1px;background:#00ff00;font-size:1px;visibility:visible"></div>
<div style="position:relative;width:1px;height:1px;background:#0000ff;font-size:1px;visibility:visible"></div>
<div style="position:relative;width:1px;height:1px;background:#ff0000;font-size:1px;visibility:visible"></div>
<div style="position:relative;width:2px;height:2px;background:#ffffff;font-size:2px;visibility:visible"></div>
<div style="position:relative;width:2px;height:2px;background:#fff000;font-size:2px;visibility:visible"></div>
<div style="position:relative;width:2px;height:2px;background:#ffa000;font-size:2px;visibility:visible"></div>
<div style="position:relative;width:2px;height:2px;background:#ff00ff;font-size:2px;visibility:visible"></div>
<div style="position:relative;width:2px;height:2px;background:#00ff00;font-size:2px;visibility:visible"></div>
<div style="position:relative;width:2px;height:2px;background:#0000ff;font-size:2px;visibility:visible"></div>
<div style="position:relative;width:3px;height:3px;background:#ff0000;font-size:3px;visibility:visible"></div>
</div>
<script language="javascript">
<!-- original:kurt grigg (kurt.grigg@virgin.net) -->
<!-- web site:http://freespace.virgin.net/kurt.grigg -->
<!-- this script and many more are available free online at -->
<!-- the javascript source!! http://javascript.internet.com -->
<!-- begin
var clrs = new array(6);
clrs = 'ff0000';
clrs = '00ff00';
clrs = '000aff';
clrs = 'ff00ff';
clrs = 'fff000';
clrs = 'fffff0';
var ybase = 200;
var xbase = 200;
var step;
var currstep = 0;
var xpos = 1;
var ypos = 1;
var xs = 200;
var ys = 400;
if (document.layers) {
window.captureevents(event.mousemove);
}
if (document.all) {
function movehandler() {
xpos = document.body.scrollleft+event.x;
ypos = document.body.scrolltop+event.y;
}
document.onmousemove = movehandler;
}
else if (document.layers) {
function xmovehandler(evnt) {
xpos = evnt.pagex;
ypos = evnt.pagey;
}
window.onmousemove = xmovehandler;
}
function comet() {
if (document.all) {
ybase = window.document.body.offsetheight / 4;
xbase = window.document.body.offsetwidth / 4;
}
else if (document.layers) {
ybase = window.innerheight / 4;
xbase = window.innerwidth / 4;
}
if (document.all) {
for ( i = 0 ; i < starsdiv.all.length ; i++ ) {
step = 3;
starsdiv.all.style.top = ypos + ybase*math.cos((currstep + i*4)/12)*math.cos(0.7+currstep/200);
starsdiv.all.style.left = xpos + xbase*math.sin((currstep + i*3)/10)*math.sin(8.2+currstep/400);
for (ai = 0; ai < clrs.length; ai++) {
var c=math.round(math.random()*);
}
starsdiv.all.style.background = clrs;
}
}
else if (document.layers) {
for ( j = 0 ; j < 14 ; j++ ) { //number of ns layers!
step = 6;
var templayer = "a"+j;
document.layers.top = ypos + ybase*math.cos((currstep + j*4)/12)*math.cos(0.7+currstep/200);
document.layers.left = xpos + xbase*math.sin((currstep + j*3)/10)*math.sin(8.2+currstep/400);
for (aj=0; aj < clrs.length; aj++)
{
var c=math.round(math.random()*);
}
document.layers.bgcolor = clrs;
}
}
currstep += step;
settimeout("comet()", 5);
}
comet();
//end -->
</script>
------------------- - --- ----------- ----
拥有三人行论坛管理系列软件,一个人就可以管理一个论坛 的 更新维护。还能使您的论坛有千人在线的真实火暴 效果 ,让您不在为论坛因没有人气而留 不住会 员而 烦恼,使您的论 坛早日成为一流的论坛。详情请登陆网站:http://www.cns rx.cn 三人行论坛管理软件,站长必备的专业好工具。(您使用 的是免费版本,购买收费版本后,将不带广告。业务QQ:247216 449852 27)
页:
[1]