mjc 发表于 2007-4-27 11:19:28

***页面特效***鼠标放到链接文字上后,文字不停滚动

把下列代码加到网页的<body></body>标签之间 从google下载我的照片管理软件
要完成此效果需要两个步骤

第一步:把如下代码加入到<head>区域中

<script language="javascript">

<!--

   var a,b,go,word;

   function greenlight(word){

    a="进来看看";

    word.style.color="red";


    linkswitch();

   }

   function linkswitch(){

    cleartimeout(go);

    b=a;

    a=a.substring(1,100)+a.charat(0);

    esh.innertext=a;

    go=settimeout("linkswitch()",100);

   }

   function stp(word){

    cleartimeout(go);

    esh.innertext="一二三四五六七";

    word.style.color="blue";

   }

//-->

</script>


第二步:把如下代码加入到<body>区域中

<a href="http://www.jojoo.net" onmouseover="greenlight(this)";

onmouseout="stp(this)"><span id="esh">
<font face="楷体_gb2312" size="3">本站推荐站点</font></span></a>
      










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

http://www.huoyue.com.cn 活跃网,活跃人群的论坛,访问活跃网,将给您带来意想不到的收获,还可以免费为您开论坛,让您免费拥有与朋友、网友交流的论坛。你是年轻人吗?你活跃你就上!
页: [1]
查看完整版本: ***页面特效***鼠标放到链接文字上后,文字不停滚动