Frown,
I found DynAPI 1 at the same time with DynAPI 2 through Dan Steinman
website. I am not a programmer and know very little JavaScript. But I went
thru the tutorials and looked at examples from Dan's site, from Richard's
site, from Pascal, etc and had a great experience with this API. Yes I agree
with you that there is no documentation yet (or at least not in a form I am
hoping for). These folks must have spent lots of time out of their busy
schedule to give us this unbelievably awesome API and open source. Of
course, everyone's needs are different. You just have to go through the
examples and take what you need and come up with your own.
So to answer your questions, try these codes, I learned it from going
through examples on Richard's, Dan's and Pascal's sites.
<SCRIPT language="Javascript" src="dynapi/src/dynapi.js"></SCRIPT>
<SCRIPT language="Javascript">
DynAPI.setLibraryPath('dynapi/src/lib/');
DynAPI.include('dynapi.api.*');
DynAPI.include('dynapi.event.*');
DynAPI.include('dynapi.util.thread.js');
DynAPI.include('dynapi.util.pathanim.js');
DynAPI.include('dynapi.gui.*');
DynAPI.include('dynapi.gui.loadpanel.js');
</SCRIPT>
<SCRIPT language="Javascript">
DynAPI.onLoad=function() {
mainPanel= new LoadPanel(); //create main panel
mainPanel.setSize(170,350)
mainPanel.moveTo(-155,129); //slide most of it off the screen
mainPanel.setURL("yourfile.html"); // loading external file, your external
file can contain images
mainPanel.do_slide=function() {
if (mainPanel.x==-155) mainPanel.slideTo(0,129,10,20)
else mainPanel.slideTo(-155,129,10,20)
}
DynAPI.document.addChild(mainPanel);
}
</script>
Then in your external file, you can attach this command in an included
image:
<a href="javascript: void(0);" onMouseOver="mainPanel.do_slide()"><img
src="image.gif" width="16" height="350" border="0" alt=""></a>
That should slide your panel in and out with your image inside the panel.
Well, I am sure there are many other better ways than this one. But from a
guy like me who doesn't know much about Javascript, this is a great and
easy-to-use API. BTW, I have several machines with IE 5 and 5.5 running on
w2k and have no crashing problem when viewing examples from Richard's site.
Check your system.
I would like to thank the DynAPI 2 team for developing such an awesome DHTML
API and you guys have done a tremendous service for the Web.
Cheers,
Joe NguyenLe
----- Original Message -----
From: "Frown" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 01, 2001 8:21 AM
Subject: [Dynapi-Help] dynapi 1 -> dynapi 2
>
> hello.
>
> i've been a devoted user of dynapi 1 for over a year now when i found
> out that the project has gone opensource/sourceforge (well, you decide
> - i don't really want to get into that legal stuff much), and suddenly
> i realized (felt an urge, should i say) that old dynapi 1 is not very
> compatible with newer browsers like mozilla/n6 and msie5.5, and so i
> decided to move onto dynapi 2...
>
> ....crash boom bang. no documentation. good orbad, docs are a must
> anyways. dynapi 1 boasted great examples and some fair docs plus
> awesome dynduo pages - a place to start from. then i came into a
> bigger problems...
>
> i use dynapi primarily for layer management (basicly show layer / hide
> layer, sometimes (the thing i need right now) - layer loading from an
> external file) and for onmouse[over/out] images - that's roughly all.
> any extensions are better crafted out in javascript by hand than by
> any means of dynapi - i do not like to get into depths if everything
> is just within a grasp, so to say...
>
> the first thing i discovered about dynapi 2 (except for the lack of
> docs) that the examples are plainly $#@%$#. take images, for example -
> well i DON'T want to draw a layer then draw an image then move it to
> some position then put another script to change it - all i want is
> simple old good <img> tag within my dynapi layer that could be changed
> by means of onmouse[over/out] and dynlayername.img, that's all. when i
> take, for example, dynapi.gui.dynimage example html, i cannot figure
> out how to SIMPLIFY it for my needs. any ideas on that ? moving
> images, resizing images are great and fun and all that, but hey,
> that's complicated. where's simple functionality ? :)
>
> the second thing i discovered - well, i can't figure out how to load
> an external file into a layer. the first dynapi was plainly tricky
> about it, but the second boasts several ways of doing that and i'm
> just puzzled - what to init first, what to init next, what to init at
> all and when ? on page load ? after what code ?
>
> i don't want to sound offensive or something but i see no reason to
> implement mega functions while simple stuff cannot be discovered by a
> rather proficient users of a previous version, so to say...
>
> thus i have two things to tell.
>
> first - any ideas how to make it simple and clear and quick with
> images and loading layers in dynapi 2 ? (see above). i tried
> richardinfo.com to look for some code snippets - but baaah, the site
> is heavily dynapified and i'm getting a script error :) with my
> msie5/w2k so i cannot browse anything there (here we came upon a
> question that was hammered to death - functionality & usability versus
> heaps of code for fun an visual effects).
>
> second - if it would be of any good, i'd like to evaluate any answers
> upon my first question[s] into a little article/primer on how to use
> SIMPLE dynapi 2 code, not the useless dinosaur-like snippets which are
> in the examples of a current distribution.
>
> peace,
> x.
>
> http://xmypoe.com
>
>
>
>
>
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help