View Full Version : glideTo(), moveTo(),glideBy(), moveBy() etc...
Hey.
I have a question about these functions, namely glideTo(), moveTo(),glideBy(), moveBy().
How do you use them...syntax? what they do?
If anyone could answer this it would be great. Thanks :)
Icestorm
23.06.2001, 11:31
You can read all about it, in this totorial: http://www.dansteinman.com/dynduo/
<font face='Verdana'>
----
[url="http://e-syed.net/skriptlab/"]v2[/url:zav96twgpn]
----
</font id='Verdana'>
Did Dan Steinman create these functions himself? Or can I just learn the syntax and use it on my own pages perhaps??
Any help would be great! Thanks :)
<font face='Tahoma'>Yes, everything you see on Dynduo are created by Dan Steinman himself.
His site is awesome with contents but he hasn't updated in 3 years.
What I would suggest is... if you want to learn about glideTo... moveTo stuff like that... learn them by heart from his site... they are those small fuctions that come in handy for big projects.
Me personally think that it doesn't matter what I name my functions or anything, just cause I name a function doesn't mean copywrited to me. But of course I do use something unique and yet simple... I can't think a replacement for moveTo or moveBy with anything else... maybe thats just because I suck at imaginations. <img src=icon_smile_tongue.gif border=0 align=middle></font id='Tahoma'>
<font face='Tahoma'><meta name="Author" content="Syedur Islam">
<meta name="Contact" content="syedur@dhtmlcentral.com">
<meta name="organization-Email" content="webmaster@e-syed.net"></font id='Tahoma'>
Edited by - Syedur on 06/24/2001 02:00:33
I personaly think glide methods are one of the best tools out there to make objects movements. They are kinda slide functions with acceleration and decceleration effects. A little info about them all, just to clarify:
moveTo: moves an object to a given position in the page
moveBy: moves an object some given pixels from its current position.
The animated functions like slide and glide (and maybe other) are based on these to functions.
Slide: moves an object straightly To/By animatedly. Normally you can set a speed.
Glide: same as Slide but with acceleration/decceleration fx.
Well, maybe this was useless or you all knew it, but I thought I had to tell.
BTW, if you use object constructors in your scripts, or a library of dhtml functions, you can use Steinman's widgets (he separates all his families of functions in separate js files) taking profit of the prototype use in the methods.
cu
Sergi
[ www.meddle.f2s.com ]
[ sergi@dhtmlcentral.com ]
Sure, this is... THE FORUM
Edited by - sergi on 06/25/2001 04:49:01
Thanks for the feedback peoples :)
Versatil
25.06.2001, 22:22
is it just me or does everyone end up at dansteinman's when they're learning dhtml?
<BLOCKQUOTE id=quote><font size=1 face="Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
is it just me or does everyone end up at dansteinman's when they're learning dhtml?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Arial, Helvetica" size=2 id=quote>
well, he's a monster. In fact, Thomas and Dan are 2 of the best coders around. Thomas scripts are nice as standalone, maybe will be better when using an api, as they'll be easier to play with and modify. On the other part, Steinman's api is so huge one can get lost in the 2nd lesson (ok, maybe in 5th?). I mean, his api is too wide for middle users level. I've been playing a lot and investigating, and personally, now I think the best solution (for me, of course, may vary for other ppl) is using a basic api (like Thomas' one), modify it a little to do other things, but keeping it simple enough for doing: object constructors, visibility, background color, movement (move, slide - To/By) and clippings (To/By). Then you can always add Steinman's widgets (as separate files using prototype) if you need any extra functionality (as glide methods, drag/drop, mousemovements, etc. for instance), because those are things you'll use less.
Just my thoughts.
cu
Sergi
[ www.meddle.f2s.com ]
[ sergi@dhtmlcentral.com ]
Sure, this is... THE FORUM
Edited by - sergi on 06/26/2001 06:09:13
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.