I’ve got this html page (see below) which shows some more text at an onmouseover event. But my problem is that I can’t figure out how to make the <div> with the “full text” bit stick — I mean remain on screen till you refresh the page or something — once you click on the “Come here to see full text!” bit. Any auggestions, please?
———–
<html>
<body>
<SCRIPT LANGUAGE=”JavaScript”> function displaytext() { if (document.layers) document.layers[“Main”].visibility=’show’; else document.all[“Main”].style.visibility=’visible’; }
function hidetext() { if (document.layers) document.layers[“Main”].visibility=’hide’; else document.all[“Main”].style.visibility=’hidden’; }
function sticktext() { if (document.layers) document.layers[“Main”].visibility=’show’; else document.all[“Main”].style.visibility=’visible’; } </SCRIPT>
<a class=”title” onMouseOver=”displaytext();” onMouseOut=”hidetext();” onClick=”sticktext()”> Come here to see full text! </a>
<DIV ID=”Main” style=”position:absolute; LEFT:20; TOP:55; Z-INDEX:2;VISIBILITY:hidden”>
full text full text full text full text
<br>
full text full text full text full text
<br>
full text full text full text full text
</div>
</body>