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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MouseOver Link message 1

Status
Not open for further replies.

oaklandar

Technical User
Joined
Feb 12, 2004
Messages
246
Location
US
I am trying to get my link on mouseover to pop up text saying "Under Construction". I have tried some of the below where it works in IE but not in my Netscape 4.77 browswer. Please advise how I can get this to work?
Code:
<html> 
<head> 
<title>Untitled</title> 
</head> 
<body> 
<a href="[URL unfurl="true"]www.mysite.com"[/URL] onmouseover="document.getElementById('linkInfo').innerHTML='Under Construction';" onmouseout="document.getElementById('linkInfo').innerHTML='';">mysite link</a>&nbsp;<span id="linkInfo"></span> 
</body> 
</html>


I also tried:

Code:
<script>
function changer(layerRef, state)
{
	eval("document" + layer + "['" + layerRef + "']" + ".visibility = '" + state + "'");
}
</script>
<div name="layer" id="layer">
Under Construction
</div>
<a href="#" onmouseout="changer('layer','hidden')" onmouseover="changer('layer', 'visible')">mysite linke</a>
 

I know this doesn't answer your query, but I'd strong advise you upgrade your Netscape browser to a newer version (v7.xx).

The old browsers do not support getElementById, and are notoriously buggy and outdated.

Hope this helps,
Dan
 
Thanks but I dont have a choice as we have to use Netscape 4.77.
 

Are you serious? Is it a company standard? Have your IT people looked into upgrading the standard at all?
 
We did upgrade to Netscape 7 but still have many many People using Netscape 4.77. Nothing I can do about it except get this to work.
 

Aah well - some users, eh?... Force them to upgrade, I say!

Anyway... I dug out some of my old NN 4.7 code... Lets say you have a layer like this:

Code:
<layer top="10" left="10" name="myLayer"></layer>

then you should be able to access it like this:

Code:
var myLayer = eval('document.myLayer');
myLayer.document.open();
myLayer.document.write(HTML);
myLayer.document.close();

I can't test this, as I haven't had NN4.7 installed for some years now... But give it a go, and see what happens!

Hope this helps,
Dan


 

Let me know if it worked - if it did, I've add the code to my "older browser code snippet" library ;o)

Thanks,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top