首  页  |  酷站  |  精品网站  |  原创作品秀  |  网络学院   |  信息中心  |  艺术设计  |  求职招聘  |  建站资源  |  服装网站  |  论坛  |  设计部落  |  网站综合
个人网页  商业网站  业界动态  设计赛事  网站资源  下载专区  设计欣赏  CG-插画  JS特效  娱乐  国际品牌  知名品牌  服装院校  专题欣赏  SEO  BANNER
域名注册 虚拟主机 广州网站建设 广州网页设计 IDC赞助 设计资源下载 虚拟主机 域名注册 品牌网站建设 服装品牌网站建设 广告服务 网站推广 娱乐
当前位置:首 页 >> JS特效 >> 鼠标事件类 >> 跟随鼠标的一群小点,就象星星一样

跟随鼠标的一群小点,就象星星一样


中资源
转载请注明出处-中国设计秀-cnwebshow.com

<div id="tooltip2"
style="position:absolute;visibility:hidden;clip:rect(0 150 50 0);width:150px;background-color:lightyellow">
<layer name="nstip" width="1000px" bgcolor="lightyellow"> </layer>
</div>
<div id="www_helpor_net__d0"
style="position:absolute; left:10px; top:50px; width:3px; height:3px; z-index:1; background-color: #19636c; layer-background-color: #19636c; border: 1px none #000000; clip: rect(0 3 3 0)"></div>
<div
id="www_helpor_net__d1"
style="position:absolute; left:20px; top:50px; width:3px; height:3px; z-index:1; background-color: #708574; layer-background-color: #708574; border: 1px none #000000; clip: rect(0 3 3 0)"></div>
<div
id="www_helpor_net__d2"
style="position:absolute; left:30px; top:50px; width:3px; height:3px; z-index:1; background-color: #379bbf; layer-background-color: #379bbf; border: 1px none #000000; clip: rect(0 3 3 0)"></div>
<div
id="www_helpor_net__d3"
style="position:absolute; left:40px; top:50px; width:3px; height:3px; z-index:1; background-color: #25184c; layer-background-color: #25184c; border: 1px none #000000; clip: rect(0 3 3 0)"></div>
<div
id="www_helpor_net__d4"
style="position:absolute; left:50px; top:50px; width:3px; height:3px; z-index:1; background-color: #31bd3c; layer-background-color: #31bd3c; border: 1px none #000000; clip: rect(0 3 3 0)"></div>
<div
id="www_helpor_net__d5"
style="position:absolute; left:60px; top:50px; width:3px; height:3px; z-index:1; background-color: #c11efd; layer-background-color: #c11efd; border: 1px none #000000; clip: rect(0 3 3 0)"></div>

<script>
if (!document.layers&&!document.all)
event="test"
function showtip2(current,e,text){

if (document.all&&document.readyState=="complete"){
document.all.tooltip2.innerHTML='<marquee style="border:1px solid black">'+text+'</marquee>'
document.all.tooltip2.style.pixelLeft=event.clientX+document.body.

scrollLeft+10
document.all.tooltip2.style.pixelTop=event.clientY+document.body

.scrollTop+10
document.all.tooltip2.style.visibility="visible"
}

else if (document.layers){
document.tooltip2.document.nstip.document.write('<b>'+text+'</b>')
document.tooltip2.document.nstip.document.close()
document.tooltip2.document.nstip.left=0
currentscroll=setInterval("scrolltip()",100)
document.tooltip2.left=e.pageX+10
document.tooltip2.top=e.pageY+10
document.tooltip2.visibility="show"
}
}
function hidetip2(){
if (document.all)
document.all.tooltip2.style.visibility="hidden"
else if (document.layers){
clearInterval(currentscroll)
document.tooltip2.visibility="hidden"
}
}

function scrolltip(){
if (document.tooltip2.document.nstip.left>=-document.tooltip2.document.nstip.document.width)
document.tooltip2.document.nstip.left-=5
else
document.tooltip2.document.nstip.left=150
}

function www_helpor_net___Layerfx(www_helpor_net__left,www_helpor_net__top,www_helpor_net__fnx,

www_helpor_net__fny,www_helpor_net__div,www_helpor_net__bilder,

www_helpor_net__loop,www_helpor_net__to,www_helpor_net__cnt,

www_helpor_net__step) {
if ((document.layers)||(document.all)){
with (Math) {www_helpor_net__nextx= eval(www_helpor_net__fnx)}
with (Math) {www_helpor_net__nexty= eval(www_helpor_net__fny)}
www_helpor_net__cnt=(www_helpor_net__loop && www_helpor_net__cnt>=www_helpor_net__step*www_helpor_net__bilder)?0:www_helpor_net__cnt+www_helpor_net__step;
if (document.layers){
eval(www_helpor_net__div+".top="+(www_helpor_net__nexty+www_helpor_net__top))
eval(www_helpor_net__div+".left="+(www_helpor_net__nextx+www_helpor_net__left))
}
if (document.all){
eval("www_helpor_net__div=www_helpor_net__div.replace(/.layers/gi, '.all')");
eval(www_helpor_net__div+".style.pixelTop="+(www_helpor_net__nexty+www_helpor_net__top));
eval(www_helpor_net__div+".style.pixelLeft="+(www_helpor_net__nextx+www_helpor_net__left));
}
argStr='www_helpor_net___Layerfx('+www_helpor_net__left+','+www_helpor_net__top+',"'+www_helpor_net

__fnx+'","'+www_helpor_net__fny+'","'+www_helpor_net__div+'",'+www_

helpor_net__bilder+','+www_helpor_net__loop+','+www_helpor_net__to+',

'+www_helpor_net__cnt+','+www_helpor_net__step+')';
if (www_helpor_net__cnt<=www_helpor_net__step*www_helpor_net__bilder){eval(www_helpor_net__div+".www_helpor_net__to=setTimeout(argStr,www_helpor_net__to)");}
}

}
function www_helpor_net___Mousetrace(evnt) {
if (www_helpor_net__ns4)
{if (evnt.pageX) {www_helpor_net___ml=evnt.pageX; www_helpor_net___mt=evnt.pageY;} }
else{
www_helpor_net___ml=(event.clientX + document.body.scrollLeft);
www_helpor_net___mt=(event.clientY + document.body.scrollTop);
}
if (www_helpor_net___tracescript)eval(www_helpor_net___tracescript)
}
var www_helpor_net__ns4=window.Event?true:false; var www_helpor_net___mt = 0; var www_helpor_net___ml = 0;
document.onmousemove = www_helpor_net___Mousetrace;
www_helpor_net___tracescript = '';

if (www_helpor_net__ns4){ document.captureEvents(Event.MOUSEMOVE);
www_helpor_net___Mousetrace('',',document.www_helpor_net___Mousetrace1')}

www_helpor_net___Layerfx(0,0,'www_helpor_net___ml+cos((15*sin(www_helpor_net__cnt/39.83007847812662))+0)*150*(sin(10+www_helpor_net__cnt/20)+0.2)*cos(www_helpor_net__cnt/20)','www_helpor_net___mt+sin((15*sin(www_helpor_net__cnt/34.224861639800686))+0)*150*(sin(10+www_helpor_net__cnt/20)+0.2)*cos(www_helpor_net__cnt/20)','document.layers['www_helpor_net__d0']',2000,true,80,0,1);

www_helpor_net___Layerfx(0,0,'www_helpor_net___ml+cos((15*sin(www_helpor_net__cnt/27.66510707209673))+30)*150*(sin(10+www_helpor_net__cnt/20)+0.2)*cos(www_helpor_net__cnt/20)','www_helpor_net___mt+sin((15*sin(www_helpor_net__cnt/9.240632767417667))+30)*150*(sin(10+www_helpor_net__cnt/20)+0.2)*cos(www_helpor_net__cnt/20)','document.layers['www_helpor_net__d1']',2000,true,80,0,1);

www_helpor_net___Layerfx(0,0,'www_helpor_net___ml+cos((15*sin(www_helpor_net__cnt/16.45318944579641))+60)*150*(sin(10+www_helpor_net__cnt/20)+0.2)*cos(www_helpor_net__cnt/20)','www_helpor_net___mt+sin((15*sin(www_helpor_net__cnt/16.0564452288292))+60)*150*(sin(10+www_helpor_net__cnt/20)+0.2)*cos(www_helpor_net__cnt/20)','document.layers['www_helpor_net__d2']',2000,true,80,0,1);

www_helpor_net___Layerfx(0,0,'www_helpor_net___ml+cos((15*sin(www_helpor_net__cnt/6.95348954836835))+90)*150*(sin(10+www_helpor_net__cnt/20)+0.2)*cos(www_helpor_net__cnt/20)','www_helpor_net___mt+sin((15*sin(www_helpor_net__cnt/44.13697049887155))+90)*150*(sin(10+www_helpor_net__cnt/20)+0.2)*cos(www_helpor_net__cnt/20)','document.layers['www_helpor_net__d3']',2000,true,80,0,1);

www_helpor_net___Layerfx(0,0,'www_helpor_net___ml+cos((15*sin(www_helpor_net__cnt/33.90077294583733))+120)*150*(sin(10+www_helpor_net__cnt/20)+0.2)*cos(www_helpor_net__cnt/20)','www_helpor_net___mt+sin((15*sin(www_helpor_net__cnt/2.2378828869411587))+120)*150*(sin(10+www_helpor_net__cnt/20)+0.2)*cos(www_helpor_net__cnt/20)','document.layers['www_helpor_net__d4']',2000,true,80,0,1);

www_helpor_net___Layerfx(0,0,'www_helpor_net___ml+cos((15*sin(www_helpor_net__cnt/37.858312521039835))+150)*150*(sin(10+www_helpor_net__cnt/20)+0.2)*cos(www_helpor_net__cnt/20)','www_helpor_net___mt+sin((15*sin(www_helpor_net__cnt/18.083839795990098))+150)*150*(sin(10+www_helpor_net__cnt/20)+0.2)*cos(www_helpor_net__cnt/20)','document.layers['www_helpor_net__d5']',2000,true,80,0,1);

if (!document.layers&&!document.all)
event="test"
function showtip2(current,e,text){

if (document.all&&document.readyState=="complete"){
document.all.tooltip2.innerHTML='<marquee style="border:1px solid black">'+text+'</marquee>'
document.all.tooltip2.style.pixelLeft=event.clientX+document.body.s

crollLeft+10
document.all.tooltip2.style.pixelTop=event.clientY+document.body.

scrollTop+10
document.all.tooltip2.style.visibility="visible"
}

else if (document.layers){
document.tooltip2.document.nstip.document.write('<b>'+text+'</b>')
document.tooltip2.document.nstip.document.close()
document.tooltip2.document.nstip.left=0
currentscroll=setInterval("scrolltip()",100)
document.tooltip2.left=e.pageX+10
document.tooltip2.top=e.pageY+10
document.tooltip2.visibility="show"
}
}
function hidetip2(){
if (document.all)
document.all.tooltip2.style.visibility="hidden"
else if (document.layers){
clearInterval(currentscroll)
document.tooltip2.visibility="hidden"
}
}

function scrolltip(){
if (document.tooltip2.document.nstip.left>=-document.tooltip2.document.nstip.document.width)
document.tooltip2.document.nstip.left-=5
else
document.tooltip2.document.nstip.left=150
}

function www_helpor_net___Layerfx(www_helpor_net__left,www_helpor_net__top,www_helpor_net__fnx,

www_helpor_net__fny,www_helpor_net__div,www_helpor_net__bilder,

www_helpor_net__loop,www_helpor_net__to,www_helpor_net__cnt,

www_helpor_net__step) {
if ((document.layers)||(document.all)){
with (Math) {www_helpor_net__nextx= eval(www_helpor_net__fnx)}
with (Math) {www_helpor_net__nexty= eval(www_helpor_net__fny)}
www_helpor_net__cnt=(www_helpor_net__loop && www_helpor_net__cnt>=www_helpor_net__step*www_helpor_net__bilder)?0:www_helpor_net__cnt+www_helpor_net__step;
if (document.layers){
eval(www_helpor_net__div+".top="+(www_helpor_net__nexty+www_helpor_net__top))
eval(www_helpor_net__div+".left="+(www_helpor_net__nextx+www_helpor_net__left))
}
if (document.all){
eval("www_helpor_net__div=www_helpor_net__div.replace(/.layers/gi, '.all')");
eval(www_helpor_net__div+".style.pixelTop="+(www_helpor_net__nexty+www_helpor_net__top));
eval(www_helpor_net__div+".style.pixelLeft="+(www_helpor_net__nextx+www_helpor_net__left));
}
argStr='www_helpor_net___Layerfx('+www_helpor_net__left+','+www_helpor_net__top+',"'+www_helpor_net

__fnx+'","'+www_helpor_net__fny+'","'+www_helpor_net__div+'",'+www_

helpor_net__bilder+','+www_helpor_net__loop+','+www_helpor_net__to+','+

www_helpor_net__cnt+','+www_helpor_net__step+')';
if (www_helpor_net__cnt<=www_helpor_net__step*www_helpor_net__bilder){eval(www_helpor_net__div+".www_helpor_net__to=setTimeout(argStr,www_helpor_net__to)");}
}

}
function www_helpor_net___Mousetrace(evnt) {
if (www_helpor_net__ns4)
{if (evnt.pageX) {www_helpor_net___ml=evnt.pageX; www_helpor_net___mt=evnt.pageY;} }
else{
www_helpor_net___ml=(event.clientX + document.body.scrollLeft);
www_helpor_net___mt=(event.clientY + document.body.scrollTop);
}
if (www_helpor_net___tracescript)eval(www_helpor_net___tracescript)
}
</script>
  

 

转载请注明出处-中国设计秀-cnwebshow.com



投稿 】【对本文进行评论】 【字体: 】【发布于2006-12-12 16:40】

相关专题:暂无相关专题

上一篇:鼠标移上去,图片渐显的方法   下一篇:如何用javascript防止连打(双击)
 认证LOGO下载
     
Copyright © 2005-2007 中国设计秀_网页设计教程_优秀网页设计欣赏_平面设计欣赏 All Right Reserved.
做最专业的设计服务网站,秀出自我,秀出精彩!中国设计秀,秀---无处不在!!
QQ:54292427  8208442 MSN:kingvisual#hotmail.com 交流群:9107036 3848215 8850631
粤ICP备05067046号 RSS