I'm been using the old dynapi from Dan Steinman for a couple of years
and trying to
covert to the new one. I've also been looking and trying to
understand the new api.
I have some sites to update because I want them
to work in Mozilla. (using old api.... www.tempusdev.com,
www.copyforless.com). I generally use inline layers.
I have a couple of questions:
Here's my problem... Can't get SlideTo to work for Mozilla 0.7 (inline
layers). I know this should work...one of the examples does but it
doesn't
have inline layers...
I'm also concerned about size of js
code.. I would like to know what is the bare minimum that I need to use:
moveTo, slideTo, setVisible... using Inline layers.... That's all I
basically use. Also, I don't understand why it appears from the
example that I
need the listeners to do slideTo.
Here is my code (based on pathanimation slide example) (works in IE
5.5). Maybe it's something simple.
Note: I pan to have many inline layers in a particular page.
> <html>
> <head>
> <title>DynAPI Examples - Slide Animation (Path Animation)</title>
> <script language="Javascript" src="src/dynapi.js"></script>
> <script language="Javascript">
> DynAPI.setLibraryPath('src/lib/');
> DynAPI.include('dynapi.api.*');
> DynAPI.include('dynapi.ext.inline.js')
> DynAPI.include('dynapi.util.thread.js');
> DynAPI.include('dynapi.util.pathanim.js');
> </script>
> <script language="Javascript">
>
> DynAPI.onLoad = function() {
>
> var myLayer = new Object();
> myLayer = this.document.all['layer1']
> myLayer.setBgColor('#c0c0c0')
> myLayer.setSize(200,200)
> myLayer.moveTo(100,100)
> myLayer.setVisible(true)
>
> 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;;
> }
> myLayer.addEventListener(listener);
> myLayer.slideTo(300,300,2,2);
> }
>
> //-->
> </script>
> </head>
>
> <body bgcolor="#ffffff">
>
> <div id="layer1" style="position:absolute;visibility:hidden;">
> This is layer1
> </div>
>
> </body>
> </html>
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help