Click to See Complete Forum and Search --> : Dealing with "layers" in IE


MjhLkwd
06-02-2003, 06:17 PM
<HTML>
<Head>
<Script Language="JavaScript">


function hidelayer(lay) {

document.all[lay].style.visibility = "hidden";
}

function writetolayer(lay,txt) {

document.all[lay].innerHTML = txt;

}

function showlayer(lay) {

document.all[lay].style.visibility = "visible";

}


</Script>
</Head>


<Body vlink="blue">

<SPAN ID="newlayer">Original Text</SPAN>
<br><br><br>

<a href="javascript:hidelayer('newlayer');">hide</a><br>
<a href="javascript:showlayer('newlayer');">show</a><br>
<a href="javascript:writetolayer('newlayer','New Text');">Replace</a><br>
<a href="javascript:writetolayer('newlayer','Original Text');">Restore</a>

</Body>
</HTML>

brendandonhue
06-02-2003, 06:42 PM
Sorry, not a mindreader. Did you have a question about the code you posted.

MjhLkwd
06-02-2003, 07:07 PM
No. I posted something I believe to be useful.

brendandonhue
06-02-2003, 07:11 PM
You have posted several of these and no one has any idea what you are posting them for. You could at least tell us why you are posting it.

Mr J
06-03-2003, 02:53 PM
No. I posted something I believe to be useful.

For IE4