Text file of source for Show/Hide Layers Demo. ***************** 40-lay-1d.htm ***************** <HTML> <HEAD> <TITLE>Show/Hide Layers Demo - Layers Page</TITLE> <SCRIPT> <!-- Activate Cloaking Device //****************************************************** // Show/Hide Layers Demo // // by Tim Wallace (timothy@essex1.com) // //****************************************************** // Called by View Source button - displays text file of source. function viewSource() { alert("\nA text file with source will be loaded to the full window.\n\nUse your browser BACK button to return to the examples."); top.window.location.href="40-lay1d.txt"; } // Deactivate Cloaking --> </SCRIPT> <SCRIPT LANGUAGE="JavaScript1.2"> <!-- Activate Cloaking Device function showHidePic() { if (document.layers["momma"].layers["pic"].visibility == "show" || document.layers["momma"].layers["pic"].visibility == "inherit") document.layers["momma"].layers["pic"].visibility= "hide" else document.layers["momma"].layers["pic"].visibility= "show"; } function showHideTxt() { if (document.layers["momma"].layers["txt"].visibility == "show" || document.layers["momma"].layers["txt"].visibility == "inherit") document.layers["momma"].layers["txt"].visibility= "hide" else document.layers["momma"].layers["txt"].visibility= "show"; } // Deactivate Cloaking --> </SCRIPT> </HEAD> <BODY bgColor=00ffff> <layer name=momma z-index=0 src="40-lay1l.htm"></layer> <nolayer> <center><strong> <font color=000080 size=+3> <i> Show/Hide Layers Demo </i> </font> </strong></center> <br><br> <center><strong> <font color=800000 size=+1> This example requires Netscape's Communicator... </font> <br><br> <font color=800000 size=> click on button below to see what you're missing. </font> </strong></center> <br><br> <center> <A HREF="http://home.netscape.com/comprod/products/communicator/index.html"> <IMG SRC="now40.gif" border=0></A> </center> <br><br> <center><form> <INPUT TYPE="button" Value="View Source Anyway" onClick="viewSource()"> </form></center> </nolayer> </BODY> </HTML> ***************** 40-lay-1l.htm ***************** <HTML> <HEAD> <TITLE>Show/Hide Layers Demo - Layers Page</TITLE> <SCRIPT> <!-- Activate Cloaking Device //****************************************************** // Show/Hide Layers Demo // // by Tim Wallace (timothy@essex1.com) // //****************************************************** // Deactivate Cloaking --> </SCRIPT> </HEAD> <BODY> <layer name=title > <center><strong> <font color=000080 size=+3> <i> Show/Hide Layers Demo </i> </font> </strong></center> </layer> <layer name=pic z-index=0 top=100> <center><img src="net2.gif" width=100 height=99></center> </layer> <layer name=txt z-index=1 top=115> <center><font color=ff0000 size=+3><STRONG><i> COMMUNICATOR </i></STRONG></font></center> </layer> <layer name=buttons z-index=2 top=235> <center><form> <input type="button" value="Show/Hide layer 1" onClick="showHidePic()"> <input type="button" value="Show/Hide layer 2" onClick="showHideTxt()"> </form></center> </layer> <layer name=viewsource top=250> <br><br> <center><form> <INPUT TYPE="button" Value="View Source" onClick="viewSource()"> </form></center> </layer> </BODY> </HTML>