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 Location 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 ({
    onlocationchange : function(e) {
      var me = e.getSource();
      me.setHTML('Location Change to:<br> x='+me.getX()+', y='+me.getY());
    }
  });

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

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

<body bgcolor="#FFFFFF">
<table bgcolor="#ffffff" border=0><tr><td>
<br><a href="javascript:;" onclick="lyr.slideTo(parseInt(Math.random()*450),parseInt(Math.random()*200));return false;">Change Location</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