Mentally Unstable Tugboat Captain
Posts: 797
Name: Chad
Location: /usr/bin/perl
|
Ok, a bit of an update. I have the script in place, and it runs, only with one problem. I want the tooltip box to stay open longer than it does (10seconds?) I want it to stay open until they do move their mouse away. The script is as follows:
Quote:
<script>
if (!document.layers&&!document.all&&!document.getEle mentById)
event="test"
function showtip(current,e,text){
if (document.all||document.getElementById){
thetitle=text.split('<br>')
if (thetitle.length>1){
thetitles=''
for (i=0;i<thetitle.length;i++)
thetitles+=thetitle[i]
current.title=thetitles
}
else
current.title=text
}
else if (document.layers){
document.tooltip.document.write('<layer bgColor="white" style="border:1px solid black;font-size:12px;">'+text+'</layer>')
document.tooltip.document.close()
document.tooltip.left=e.pageX+5
document.tooltip.top=e.pageY+5
document.tooltip.visibility="show"
}
}
function hidetip(){
if (document.layers)
document.tooltip.visibility="hidden"
}
</script>
|
Here is the div line of coding:
Quote:
|
<div id="tooltip" style="position:absolute;visibility:hidden"></div>
|
And here is an example of one of the lines of text that I want the tooltip to open on (yes, I know there is no "href", I wanted it that way).
Quote:
|
<a onMouseover="showtip(this,event,'Web Master :: A beginning course in web design. Each nine weeks focuses on a different aspect. ')" onMouseout="hidetip()">Web Master</a>
|
Like I said, it works fine, I just want the box to remain open until they do mouse away. Thanks in advance.
__________________
He's baaaaaaaack....
|