PDA

View Full Version : Animation Object Template - add your own moves


Vladdy
09-16-2004, 08:37 AM
View Source :thumbsup:
http://webdeveloper.klproductions.com/demos/htmlblockmove.html

fci
09-16-2004, 04:32 PM
only comment as far as usability goes, would be the ability to specify the x and y coordinates using the mouse(crosshair?) and then autogenerating js code for the noobs who want to use it for their own site... of course that's assuming noobs are the target audience otherwise just take into account my first suggestion.

allida77
09-16-2004, 04:59 PM
That is very nice.

fci
09-16-2004, 05:49 PM
also.. a question
I noticed you didn't use setInterval at all.. any particular reason why?

edit: nevermind, obvious reasons why you didn't use setInterval

fci
09-17-2004, 07:08 AM
ooo, I just thought of an interesting feature that it would scroll along with the block if it goes off the page... maybe navigating to some off the screen content ? mmmm

shlagish
09-22-2004, 03:46 AM
I don't get it. I play around with the info in the input boxes, but the squares don't move at all.
What am I doing wrong?

Vladdy
09-23-2004, 02:52 AM
only comment as far as usability goes, would be the ability to specify the x and y coordinates using the mouse(crosshair?) and then autogenerating js code for the noobs who want to use it for their own site... of course that's assuming noobs are the target audience otherwise just take into account my first suggestion.
If you notice, there are two script blocks in the source code: first one is the definition of the object, the second one has supporting function that envoke object's methods. It is up to you how to acquire the coordinates.

I don't get it. I play around with the info in the input boxes, but the squares don't move at all.
What am I doing wrong?
Assuming that you are using Gecko browser or IE6.0 and you have javascript enabled, click on the red or green square....

shlagish
09-29-2004, 04:28 AM
oh... stupid me, thanks for the explanation :)