Listers,

While trying to get a test of Inline layers working I can't seem to get the included HTMl in the <DIV> tags to appear in the following, either I get the HTML to work or I get the eventlistener to work, but I can't seem to get both to work. What am I doing wrong?  Thanks :

<html>
<head>
<title>DynAPI Examples - Slide Animation (slide in/out)</title>
<script language="Javascript" src="../src/dynapi.js"></script>
<script language="Javascript">
DynAPI.setLibraryPath('../src/lib/');
DynAPI.include('dynapi.api.*');
DynAPI.include('dynapi.util.thread.js');
DynAPI.include('dynapi.util.pathanim.js');
DynAPI.include('dynapi.ext.inline.js');
</script>
<script language="Javascript">

DynAPI. {

        DynAPI.document.all["pan"].setBgColor('red');
        DynAPI.document.all["pan"].setSize(75,300);
        DynAPI.document.all["pan"].moveTo(10,75);
 
        block = DynAPI.document.all["pan"];
 
 var listener = new EventListener();
 listener.onpathstart = function(e) {
  status = "start";
 }
 listener.onpathrun = function(e) {
  var o = e.getSource();
  status = "play "+o.x+" "+o.y;
 }
 listener.onpathstop = function(e) {
  var o = e.getSource();
  status = "stop "+o.x+" "+o.y;;
 }
 
        block.addEventListener(listener);

 DynAPI.document.addChild(block);
}

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

<div id="pan" STYLE="position: absolute">Testing inline layers</div>

<body bgcolor="#ffffff">

<br>

<p>
<a href="javascript:block.slideTo(10,75)">Slide In:</a>
<br>
<a href="javascript:block.slideTo(-75,75)">Slide Out:</a>
 

</body>
</html>


bobb

http://64.33.167.222/
 

Reply via email to