DHTML onclick "flying icon" code

E

esingley

Hello,

I've been googling for a half hour now trying to find some code that
does the following: When I click an icon/image, I want it to fly to a
specific location then disappear.

For example, clicking a "+" icon next to some "Add to list" text would
cause the icon to quickly float to a <table> somewhere else on the
page. I thought iht.com did this with their "clippings" functionality,
but they do what I'm looking for minus the key animation part.

Anyone seen something like this?

Thanks,

~ Eric
 
K

kaeli

For example, clicking a "+" icon next to some "Add to list" text would
cause the icon to quickly float to a <table> somewhere else on the
page. I thought iht.com did this with their "clippings" functionality,
but they do what I'm looking for minus the key animation part.

Anyone seen something like this?

Yes. Many ads do similar things to move around and get noticed. They often
float from the top to the middle or vice versa. Basically, you move the image
many times, incrementally, to create the animated look.
Did you look over at dynamicdrive.com? I thought I saw some animated type
stuff like this over there.

--
 
E

Eli

1. For the animation move part you need the start and finish points
(absolute x,y coordinates).
2. Set the image position to absolute.
3. Then with a formula of motion (might be linear or parabolic or
whatever), change the x and y coordinates of the image step by step
toward the finish coordinates (of course, you need also to determine
the interval time between steps and number of steps).
 
R

Randy Webb

Eli said:
1. For the animation move part you need the start and finish points
(absolute x,y coordinates).
False.

2. Set the image position to absolute.

False again.
3. Then with a formula of motion (might be linear or parabolic or
whatever), change the x and y coordinates of the image step by step
toward the finish coordinates (of course, you need also to determine
the interval time between steps and number of steps).

Semi-true.

Had you quoted what you were replying to, it would make it easier to
explain why your answers are False.


--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,010
Latest member
MerrillEic

Latest Threads

Top