?? 34.html
字號:
<html>
<head>
<title>顯示鏈接信息的滾動條</title>
</head>
<body>
<div id="tooltip2" style="position:absolute;visibility:hidden;clip:rect(0 150 50 0);width:150px;background-color:lightyellow">
<layer name="nstip" width=1000px></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()",25)
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>
<!--設置鏈接的URL地址以及滾動內容-->
<font face="宋體" size="3"><b>
<a href="http://www.sina.com.cn" onMouseOver="showtip2(this,event,'鏈接到新浪')" onMouseOut="hidetip2()">新的鏈接</a></b></font>
</td>
<td>
<font face="宋體" size="3"><b>
<a href="http://www.sohu.com" onMouseOver="showtip2(this,event,'鏈接到搜狐')" onMouseOut="hidetip2()">新的鏈接</a></b></font>
</td>
<td>
<font face="宋體" size="3"><b>
<a href="#" onMouseOver="showtip2(this,event,'空鏈接1')" onMouseOut="hidetip2()">新的鏈接</a></b></font>
</td>
<td><font face="宋體" size="3"><b>
<a href="#" onMouseOver="showtip2(this,event,'空鏈接2')" onMouseOut="hidetip2()">新的鏈接</a>
</b></font>
</td>
</tr>
<tr>
<td><font face="宋體" size="3"><b>
<a href="#" onMouseOver="showtip2(this,event,'空鏈接3')" onMouseOut="hidetip2()">新的鏈接</a></b></font>
</td>
<td><font face="宋體" size="3"><b>
<a href="#" onMouseOver="showtip2(this,event,'空鏈接4')" onMouseOut="hidetip2()">新的鏈接</a></b></font>
</td>
<td><font face="宋體" size="3"><b>
<a href="#" onMouseOver="showtip2(this,event,'空鏈接5')" onMouseOut="hidetip2()">新的鏈接</a></b></font>
</td>
<td></td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -