设为首页
加入收藏
联系我们
您当前的位置:资源网365 -> 文章中心 -> 网页制做 -> 鼠标特效 -> 文章内容 退出登录 用户管理
栏目导航
· 状态栏特效 · 网页配色
· 网页特效 · 鼠标特效
· 按钮特效

热门文章
· 春节对联-有横批的对...
· qq空间最新导航代码...
· 猪年对联( 2007猪年...
· 2007春节搞笑祝福语...
· 政治学习心得体会
· 鼠年春联集锦
· 党员学习心得范文
· [推荐] 知名论坛列表
· 我国五十六个民族名...
· 2008年鼠年春节对联...

相关文章
鼠标旋转的流星
作者:本站  来源:本站整理  发布时间:2007-3-5 1:50:44  发布人:资源网365

减小字体 增大字体

<script language=JavaScript>
/*
Magic Wand cursor II (By Kurt at kurt.grigg@virgin.net)
Modified and permission granted to Dynamic Drive to feature script in

archive
For full source, usage terms, and 100's more DHTML scripts, visit

http://dynamicdrive.com
*/

if (document.all){
with (document){
write('<div id="starsDiv" style="position:absolute;top:0px;left:0px">')
write('<div

style="position:relative;width:1px;height:1px;background:#6699CC;font-

size:1px;visibility:visible"></div>')
write('<div

style="position:relative;width:1px;height:1px;background:#6699CC;font-

size:1px;visibility:visible"></div>')
write('<div

style="position:relative;width:1px;height:1px;background:#6699CC;font-

size:1px;visibility:visible"></div>')
write('<div

style="position:relative;width:1px;height:1px;background:#6699CC;font-

size:1px;visibility:visible"></div>')
write('<div

style="position:relative;width:1px;height:1px;background:#6699CC;font-

size:1px;visibility:visible"></div>')
write('<div

style="position:relative;width:1px;height:1px;background:#6699CC;font-

size:1px;visibility:visible"></div>')
write('<div

style="position:relative;width:1px;height:1px;background:#6699CC;font-

size:1px;visibility:visible"></div>')
write('<div

style="position:relative;width:2px;height:2px;background:#6699CC;font-

size:2px;visibility:visible"></div>')
write('<div

style="position:relative;width:2px;height:2px;background:#6699CC;font-

size:2px;visibility:visible"></div>')
write('<div

style="position:relative;width:2px;height:2px;background:#6699CC;font-

size:2px;visibility:visible"></div>')
write('<div

style="position:relative;width:2px;height:2px;background:#6699CC;font-

size:2px;visibility:visible"></div>')
write('<div

style="position:relative;width:2px;height:2px;background:#6699CC;font-

size:2px;visibility:visible"></div>')
write('<div

style="position:relative;width:2px;height:2px;background:#6699CC;font-

size:2px;visibility:visible"></div>')
write('<div

style="position:relative;width:3px;height:3px;background:#6699CC;font-

size:3px;visibility:visible"></div>')
write('</div>')
}
}

if (document.layers)
{window.captureEvents(Event.MOUSEMOVE);}
var yBase = 200;
var xBase = 200;
var step = 1;
var currStep = 0;
var Xpos = 1;
var Ypos = 1;

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 animateLogo() {
if (document.all)
{
yBase = window.document.body.offsetHeight/6;
xBase = window.document.body.offsetWidth/6;
}
else if (document.layers)
{
yBase = window.innerHeight/8;
xBase = window.innerWidth/8;
}

if (document.all)
{
for ( i = 0 ; i < starsDiv.all.length ; i++ )
{
starsDiv.all[i].style.top = Ypos + yBase*Math.sin((currStep + i*4)/12)

*Math.cos(400+currStep/200);
starsDiv.all[i].style.left = Xpos + xBase*Math.sin((currStep + i*3)/10)

*Math.sin(currStep/200);
}
}

else if (document.layers)
{
for ( j = 0 ; j < 14 ; j++ ) //number of NS layers!
{
var templayer="a"+j
document.layers[templayer].top = Ypos + yBase*Math.sin((currStep +

j*4)/12)*Math.cos(400+currStep/200);
document.layers[templayer].left = Xpos + xBase*Math.sin((currStep +

j*3)/10)*Math.sin(currStep/200);
}
}
currStep+= step;
setTimeout("animateLogo()", 10);
}
animateLogo();
</script>

----------------------

[] [返回上一页] [打 印] [收 藏]
上一篇文章:跟随鼠标的萤火虫
下一篇文章:鼠标点击效果
∷相关文章评论∷    (评论内容只代表网友观点,与本站立场无关!) [更多评论...]
关于本站 - 网站帮助 - 广告合作 - 下载声明 - 友情连接 - 网站地图 - 意见留言
Copyright © 2006-2008 zyw365.com. All Rights Reserved .
站长QQ:416044505 站长:王耀加
有事点这里可以联系我! 站长QQ群:42160413
请把本站网址介绍给你10个好友,谢谢!( 资源网365 http://www.zyw365.com/ ) 蜀ICP备06018926