Forum Moderators: phranque

Message Too Old, No Replies

Javascript question, drawing a line between 2 images on page?

         

dualfragment

3:56 pm on Aug 3, 2007 (gmt 0)

10+ Year Member



Lets say that I have tons of images lined up, 2 columns of these images, and each column has 10 rows. First, I click an image in the first column. Next, I click an image in the second column. After the two images are clicked, javascript automatically draws a nice line segment that connects the two images.

Is this even possible with javascript? If so, how would I determine how to draw the lines correctly so that they line up with the images?

justgowithit

8:20 pm on Aug 3, 2007 (gmt 0)

10+ Year Member



Sounds to me like it would be easier with Flash.

Demaestro

8:38 pm on Aug 3, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Have you used the Yahoo Library?
[developer.yahoo.com...]

This Example here will be a great starting point.
[developer.yahoo.com...]

Anyway check it out. They update the code. Write the code. And will host the code all for free. Although I prefer to host it myself. They have a ton of great stuff.