鼠标放到链接上就会出现一个说明框里面有滚动的文字说明
代码是:
<a _blank onMouseOver=helpor_net_show(thisevent看到了吧?) onMouseOut=helpor_net_hide()>把鼠标放上来试试</a>
<div id=tooltip >
<layer name=nstip width=px bgColor=seashell></layer>
</div>
<SCRIPT language=JavaScript>
<!
if (!documentlayers&&!documentall)
event=test
function helpor_net_show(currentetext){
if (documentall&&documentreadyState==complete){
documentalltooltipinnerHTML=<marquee >+text+</marquee>
documentalltooltipstylepixelLeft=eventclientX+documentbodyscrollLeft+
documentalltooltipstylepixelTop=eventclientY+documentbodyscrollTop+
documentalltooltipstylevisibility=visible
}
else if (documentlayers){
documenttooltipdocumentnstipdocumentwrite(<b>+text+</b>)
documenttooltipdocumentnstipdocumentclose()
documenttooltipdocumentnstipleft=
currentscroll=setInterval(scrolltip())
documenttooltipleft=epageX+
documenttooltiptop=epageY+
documenttooltipvisibility=show
}
}
function helpor_net_hide(){
if (documentall)
documentalltooltipstylevisibility=hidden
else if (documentlayers){
clearInterval(currentscroll)
documenttooltipvisibility=hidden
}
}
function scrolltip(){
if (documenttooltipdocumentnstipleft>=documenttooltipdocumentnstipdocumentwidth)
documenttooltipdocumentnstipleft=
else
documenttooltipdocumentnstipleft=
}
//>
</SCRIPT>