طريقة التركيب
انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY <script
type="text/javascript">
/***********************************************
* Scrolling Tooltip Script- © Dynamic Drive (
www.dynamicdrive.com)* This notice must stay intact for use
* Visit Dynamic Drive at
http://www.dynamicdrive.com/ for full source
code
***********************************************/
function ietruebody(){ //Dynamicdrive added function
return (document.compatMode &&
document.compatMode!="BackCompat")? document.documentElement :
document.body
}
if (!document.layers&&!document.all)
event="test"
function showtip2(current,e,text){
if (document.all&&document.readyState=="complete"){
document.all.tooltip2.innerHTML='<marquee direction="right"
style="border:1px solid black">'+text+'</marquee>'
document.all.tooltip2.style.pixelLeft=event.clientX+ietruebody().scrollLeft+10
document.all.tooltip2.style.pixelTop=event.clientY+ietruebody().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
150 50 0);width:150px;background-color:lightyellow" dir="ltr">
<layer name="nstip" width=1000px
bgColor="lightyellow"></layer>
</div>
<a href="http://www.star28.com" onMouseover="showtip2(this,event,'لقد
ظهر وصف الرابط .... هل أعجبك')" onMouseout="hidetip2()">ضع الماوس
هنا</a>