Relative Layers : Layer Creation « Ajax Layer « JavaScript DHTML






Relative Layers


http://dynapi.sourceforge.net/
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999       
<html>
<head>
<title>DynLayer Examples - Relative DynLayers</title>
<script language="JavaScript" src="./dynapisrc/dynapi.js"></script>
<script language="Javascript">
dynapi.library.setPath('./dynapisrc/');
dynapi.library.include('dynapi.api.DynLayer');
</script>
<script language="Javascript">

var lyr1=dynapi.document.addChild(new DynLayer('Hello',0,0,100,30,'yellow'))
var lyr2=dynapi.document.addChild(new DynLayer('Everyone',0,0,100,30,'lime'))

</script>
</head>

<body>
<p>Some html here, some more html here some html here, some more html here. some more html here some  html here, some more html here. Some more html here some html here, some more html here. some more html here some html here, some more html here. some more html here some html here, some more html here.</p>
<script>dynapi.document.insertChild(lyr1,'relative');</script>
<p>Some html here, some more html here some html here, some more html here. some more html here some  html here, some more html here. Some more html here some html here, some more html here. some more html here some html here, some more html here. some more html here some html here, some more html here.</p>
<script>dynapi.document.insertChild(lyr2,'relative');</script>
</body>
</html>



           
       








dynapi.zip( 791 k)

Related examples in the same category

1.Layer Create/Remove/Delete
2.Generate and destroy layers
3.This is an inline layer that was created after page load
4.Relative Layers : Dynamic creation example
5.Relative Layers : Basic example
6.Layer Inline