热门标签:   个人网站   个人网页   WAP网站   网页特效   网页教程   收藏本站   设为主页  
首 页   个人网站   个人博客   WAP网站   网页特效   网页教程   软件教程   我要参展
帐 号: 密 码:
 
网站及资源搜索:  
 
  当前位置 > 中国个人网页秀-> 网页特效-> 鼠标特效-> 跟随鼠标的酷文字
跟随鼠标的酷文字
整理:Cnwshow.Com   来源:Internet   整理时间:2008-2-17

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>跟随鼠标的酷文字</title>
</head>
<body>
<SCRIPT language=javascript>
<!--//
var cx=0;
var cy=0;
var val=0;
function locate()
{    cx=window.event.x;
    cy=window.event.y;
    
}
document.onmousemove=locate;
function follow(i)
{    var x;
    if(i<4)x=cx-50+i*10;
    else x=cx-25+i*10;
    var y=cy-20+Math.floor(Math.random()*40);
    w=eval("word"+i);
    with(w.style)
    {
    left=x.toString()+"px";
    top=y.toString()+"px";
    }
}
function show(i)
{    
    var w=eval("word"+i);
    with(w.style)
    {
    visibility="visible";
    s=parseInt(fontSize);
    if(s>=200)s-=100;
    else if(s>90&&s<=100)
        {
        s-=85;
        clearInterval(val);
        if(i<5)val=setInterval("show("+(i+1)+")",20);
        }    
    fontSize=s;
    }
    
}
function start()
{    for(i=1;i<=5;i++)
    {
    val=setInterval("show(1)",20);
    setInterval("follow("+i+")",100);
    
    }
}    

//-->
</SCRIPT>
<SCRIPT language=javascript>
    var word=new Array(5);
    word[1]="个";word[2]="人";word[3]="网";word[4]="页";word[5]="秀";
    for(i=1;i<=5;i++)
        document.write("<div id='word"+i+"' style='width:20px;height:20px;position:absolute;font-size:1000;visibility:hidden'><font face='Forte' color='#FF0000'>"+word[i]+"</font></div>");start();
</SCRIPT>
</body>
</html>


运行代码预览特效
  鼠标特效 热门点击
·跟随鼠标的小球
·跟随鼠标的花絮
·跟随鼠标的飘带文字
·跟随鼠标的光环
·跟随鼠标的时钟
·跟随鼠标的彩带文字
·跟鼠标的彩带
·跟随鼠标的酷文字
·跟随鼠标的滚动字幕
·非图片鼠标跟踪器
  酷站推荐
关于本站  联系本站  免责声明  使用帮助  网站搜索  网站地图
Copyright © 2005-2008 Cnwshow.Com Inc All Rights Reserved 中国个人网页秀
技术支持:网秀科技   QQ群:36941957  客服QQ:151483161  粵ICP备05134415号