Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PopUp Information for Netscape and IE

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
In my recent web application, there is an area where the user can rollover some text (not an image) and a description of that text will pop-up in the same window. This works great in IE, but I can't get it to work in Netscape. Does anybody know how to create pop-ups that will work in both Netscape and IE?

Thanks
 
This works for me I have it start right after the <body>
<script>
if (!document.layers&&!document.all)
event=&quot;test&quot;
function showtip(current,e,text){
if (document.all){
thetitle=text.split('<br>')
if (thetitle.length>1){
thetitles=''
for (i=0;i<thetitle.length;i++)
thetitles+=thetitle
current.title=thetitles
}
else
current.title=text
} else if (document.layers){
document.tooltip.document.write('<layer bgColor=&quot;white&quot; style=&quot;border:1px solid black;font-size:10px;font-family:arial&quot;>'+text+'</layer>')
document.tooltip.document.close()
document.tooltip.left=e.pageX+5
document.tooltip.top=e.pageY+5
document.tooltip.visibility=&quot;show&quot;
}
}
function hidetip(){
if (document.layers)
document.tooltip.visibility=&quot;hidden&quot;
}
</script>
<div id=&quot;tooltip&quot; style=&quot;position:absolute;visibility:hidden&quot;></div>

#####
Then on the text link <a href=&quot; &quot; onMouseover=&quot;showtip(this,event,'Brief Description')&quot; onMouseout=&quot;hidetip()&quot;>Master Database</a>

Hope this helps you out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top