您现在的位置: 星云电脑教程 >> 电脑教程 >> 网页制作 >> CSS-HTML >> 正文

滚动的链接提示

星云电脑教程 文章来源:本站原创 作者:星云整理 更新时间:2004-7-31 15:37:49 点击数有问必答

<html>
<head>
<style type="text/css">
<!--
a.js:link{  color: #FF0000; text-decoration: none; line-height: 120% }
a.js:visited{  color: #FF0000; text-decoration: none; line-height: 120% }
a.js:hover{  color: #FF3300; text-decoration: underline; line-height: 120% }
a.js:active{  color: #FF3300; text-decoration: underline; line-height: 120% }
-->
</style>
<body bgcolor="#c2c2c9" text="#000000" leftmargin="0" topmargin="0">

<object id=closes type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Close">
</object>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="90%">
  <tr>
    <td align="center">
 <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;visibility:hidden;clip:rect(0 200 50 0);width:200px;background-color:#F3F3F8; height: 15px">
  <layer name="nstip" width=1000px bgColor="#F3F3F8"></layer>
</div><br>
      <br>
      <a href="/" onMouseover="showtip2(this,event,'欢迎访问;星云网络 | 网页特效 | 书籍下载 | 精品收藏 | 酷站赏析 ')" onMouseout="hidetip2()">演示链接</a></td>
  </tr>
</table>

</body>
</html>

>>

内容搜索
相关文章
没有相关教程
推荐文章
热点资讯
专题栏目