Text file of source for Swap Two Layers Demo. ***************** 40-lay-2d.htm ***************** <HTML> <HEAD> <TITLE>Swap Two Layers Demo - Demo Page</TITLE> <SCRIPT> <!-- Activate Cloaking Device //****************************************************** // Swap Two 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-lay2d.txt"; } // Deactivate Cloaking --> </SCRIPT> <SCRIPT LANGUAGE="JavaScript1.2"> <!-- Activate Cloaking Device var on_top=true; function swapLayers() { if (on_top) { document.layers["momma"].layers["pic"].moveAbove(document.layers["momma"].layers["txt"]); on_top=false; } else { document.layers["momma"].layers["txt"].moveAbove(document.layers["momma"].layers["pic"]); on_top=true; } } // Deactivate Cloaking --> </SCRIPT> </HEAD> <BODY bgColor=00ffff> <layer name=momma z-index=0 src="40-lay2l.htm"></layer> <nolayer> <center><strong> <font color=000080 size=+3> <i> Swap Two 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-2l.htm ***************** <HTML> <HEAD> <TITLE>Swap Two Layers Demo - Layers Page</TITLE> <SCRIPT> <!-- Activate Cloaking Device //****************************************************** // Swap Two Layers Demo // // by Tim Wallace (timothy@essex1.com) // //****************************************************** // Deactivate Cloaking --> </SCRIPT> </HEAD> <BODY> <layer name=title > <center><strong> <font color=000080 size=+3> <i> Swap Two 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="Swap The Layers" onClick="swapLayers()"> </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>