中国网站美工网!网页设计者的天堂!
本站特色:HTML网页模版下载    
  您的位置:

首页 >> 网页特效 >> 链接特效 >> 正文

相关信息

网页小技巧:如何去除超链接的下
链接文字的渐变效果
一种隐藏URL的方法 (并是弹出无
网页加入到收藏夹特效
先点击指定链接,才能看到受限制
鼠标移到链接上,文字本身及背景
提示特效打字效果
鼠标移到按钮上就会出现跳马灯式
网页十字显现
有没有看过会旋转的链接? 请看
翻转的超链接
色彩变幻的链接
单行卷轴加链接
闪烁的连接

又一个鼠标移到按钮上就会出现跳马灯式样的说明文字

又一个鼠标移到按钮上就会出现跳马灯式样的说明文字


来源: 本站原创 | 时间: 2005-12-28 19:44:55 | 人气:

 

又一个鼠标移到按钮上就会出现跳马灯式样的说明文字

要完成此效果把如下代码加入到<body>区域中

<div id="tooltip2" style="position:absolute;visibility:hidden;clip:rect(0 150 50

0);width:150px;background-color:seashell">

<layer name="nstip" width=1000px bgColor="seashell"></layer>

</div>

<SCRIPT language="JavaScript">

<!--

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

}

//-->

 

 

</SCRIPT>

        <table border="0">

      <tr>

        <td><font face="Arial, Helvetica, sans-serif" size="3"><b>

          <a href="link.htm" onMouseOver="showtip2(this,event,'说明文字!')"

onMouseOut="hidetip2()">我的链接</a></b></font></td>

        <td><font face="Arial, Helvetica, sans-serif" size="3"><b><a href="link.htm"

onMouseOver="showtip2(this,event,'说明文字!')" onMouseOut="hidetip2()">我的链接

</a></b></font></td>

        <td><font face="Arial, Helvetica, sans-serif" size="3"><b><a href="link.htm"

onMouseOver="showtip2(this,event,'说明文字!')" onMouseOut="hidetip2()">我的链接</a>

          </b></font></td>

        <td><font face="Arial, Helvetica, sans-serif" size="3"><b><a href="link.htm"

onMouseOver="showtip2(this,event,'说明文字!')" onMouseOut="hidetip2()">我的链接</a>

          </b></font></td>

      </tr>

本新闻共2页,当前在第1页  1  2  

 
  上一篇:链接文字的渐变效果  下一篇:网页小技巧:如何去除超链接的下划线
Copyright © 2005 - 2006 WEB600.Net,All Rights Reserved
业务联系 QQ 站长:106324307 美工:270348300 程序:63888546
E-mail: 3235183@163.com MSN: fuqiyangru@hotmail.com
中国网站美工网--网页设计者的天堂! 陕ICP备06005517号
本站资源来自互联网 如果侵犯您的权利 请通知我们 我们会尽快删除