Layer : Layer Events : Ajax Layer JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Ajax Layer » Layer Events »

 

Layer




http://dynapi.sourceforge.net/
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
<html>
<head>
<title>DynAPI Examples - On Content Change Event</title>
<script language="Javascript" src="./dynapisrc/dynapi.js"></script>
<script language="Javascript">
<!--
  dynapi.library.setPath('./dynapisrc/');
  dynapi.library.include('dynapi.api');
//-->
</script>
<script language="Javascript">
<!--
dynapi.onLoad(function() {
  lyr = new DynLayer('Hello',300,50,100,100,'yellow');
  lyr.addEventListener ({
    oncontentchange : function(e) {
      var me = e.getSource();
      alert('Content Change to : "'+me.getHTML()+'"');
    }
  });

  dynapi.document.addChild(lyr);
});

//-->
</script>
</head>

<body bgcolor="#FFFFFF">
<table bgcolor="#ffffff" border=0><tr><td>

<br>Conten #1: <a href="javascript:lyr.setHTML('Cool Layer')">Cool Layer</a>
<br>Conten #2: <a href="javascript:lyr.setHTML('Blueprint - Layers in overdrive!')">Blueprint - Layers in overdrive!</a>
<br>Conten #3: <a href="javascript:lyr.setHTML('DynAPI is ccool!')">DynAPI is ccool!</a>
</td></tr></table>
</body>
</html>

           
       

Download : Download nav_dynapi.zip nav_dynapi.zip


-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Ajax Layer
» Layer Events