florida
10-16-2003, 06:41 AM
I have a mouseover link script below that works in Netscape 4.77 and IE. It is suppose to go over the link and show a small box with text info about the link. It does work but after it goes over the link and shows the text info about link it makes ALL words on the Netscape 4.77 web page all look like weird squares. It works great in IE. Please advise where I can correct this problem. I also tried eliminating the fonts but it still gives squares on my Netscape 4.77 page. There are no frames on my page.
<html>
<head>
<title>Untitled</title>
</head>
<body>
<script language="JavaScript1.2" type="text/javascript">
if (!document.layers&&!document.all)
event="test"
function showtip(current,e,text,orientation) {
if (document.all) {
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('<font>'+text+'</font>')
document.tooltip.document.close()
if (orientation == "right") {
document.tooltip.left=e.pageX+10
document.tooltip.top=e.pageY+10
} else {
document.tooltip.left=e.pageX-5
document.tooltip.top=e.pageY-5
}
document.tooltip.zIndex=1000
document.tooltip.visibility="show"
}
}
function hidetip() {
if (document.layers) {
document.tooltip.visibility="hidden"
}
}
if (top.frames.length!=0)
top.location=self.document.location;
</script>
<DIV ID="tooltip" STYLE="position:absolute;visibility:hidden;"></DIV>
<TABLE border="1" width="99%" align="center">
<tr>
<TD width="21%" ><A HREF="chec.cfm" TARGET="self"
onMouseOver="showtip(this,event,'ATL','right');return true"
onMouseOut="hidetip();"
TITLE="This event handler provides an popup message.">
ATL</A></TD>
<TD align="middle" width="7%" >test</TD>
</tr>
</table>
</body>
</html>
<html>
<head>
<title>Untitled</title>
</head>
<body>
<script language="JavaScript1.2" type="text/javascript">
if (!document.layers&&!document.all)
event="test"
function showtip(current,e,text,orientation) {
if (document.all) {
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('<font>'+text+'</font>')
document.tooltip.document.close()
if (orientation == "right") {
document.tooltip.left=e.pageX+10
document.tooltip.top=e.pageY+10
} else {
document.tooltip.left=e.pageX-5
document.tooltip.top=e.pageY-5
}
document.tooltip.zIndex=1000
document.tooltip.visibility="show"
}
}
function hidetip() {
if (document.layers) {
document.tooltip.visibility="hidden"
}
}
if (top.frames.length!=0)
top.location=self.document.location;
</script>
<DIV ID="tooltip" STYLE="position:absolute;visibility:hidden;"></DIV>
<TABLE border="1" width="99%" align="center">
<tr>
<TD width="21%" ><A HREF="chec.cfm" TARGET="self"
onMouseOver="showtip(this,event,'ATL','right');return true"
onMouseOut="hidetip();"
TITLE="This event handler provides an popup message.">
ATL</A></TD>
<TD align="middle" width="7%" >test</TD>
</tr>
</table>
</body>
</html>