作家
登录

javascript实现的鼠标链接提示效果生成器代码

作者: 来源:www.28hudong.com 2013-03-30 03:24:56 阅读 我要评论

链接注释 演 示 源 代 码 <a href="http:// " onMouseOver="showtip2(this,event,' ')" onMouseOut="hidetip2()"> </a> 链接注释 注释:放在<body>与</body>之间 <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 } </script> <div id="tooltip2" style="position:absolute;clip:rect(0 150 50 0);width:150px;background-color:#99FF99; top: 31px; left: 103px; visibility: hidden; height: 13px"> </div> 链接标题: 地址http:// 注释内容: 注释:把下面生成链接放在你的位置 [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]

  推荐阅读

  List Information About the Binary Files Used by an Application

Returns the name and product code of binary information (such as bitmaps, icons, executable files, and so on) used by a Windows Installer application. This script requires both Windows PowerShell an>>>详细阅读


本文标题:javascript实现的鼠标链接提示效果生成器代码

地址:http://www.17bianji.com/kaifa2/JS/30332.html

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)