JavaScript DHTML/Ajax Layer/Layer Destroy

Материал из Web эксперт
Перейти к: навигация, поиск

Destroy a Layer

http://dynapi.sourceforge.net/
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
<html>
<head>
<title>Destroy Layer</title>
<script language="JavaScript" src="./dynapisrc/dynapi.js"></script>
<script language="Javascript">
//DynAPI Includes
dynapi.library.setPath("./dynapisrc/");
dynapi.library.include("dynapi.api");
</script>
<script language="Javascript">
<!--
//***Init Code Start***

  lyr = new DynLayer("<a href="javascript:lyrdelete();">_Destroy()</a>",100,100,100,100,"FFFF00");
  dynapi.document.addChild(lyr);
  function lyrdelete() {
    lyr._destroy();
    alert("reload the page now");
  }
//***Init Code End***
//-->
</script>
</head>
<body bgcolor="#496481" style="overflow:hidden">
<script>
  dynapi.document.insertAllChildren();
</script>
</body>
</html>


<A href="http://www.wbex.ru/Code/JavaScriptDownload/dynapi.zip">dynapi.zip( 791 k)</a>