Javascript rubber band animation between mouse(x,y) and mousedown

Hi,
We are looking for an animated line that turns on at mouse down and off at mouse up and goes between the current mouse position and the original mousedown position.

mcm-mgmAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GwynforWebCommented:
non vertical/horzontal lines are possible but require one hell of a lot  of code
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
wzd3Commented:
You might want to start with a graphics package already written.  Take a look at http://www.webreference.com/programming/javascript/gr/column2/2.html

It has a line drawing function already in it and refers to a demo page at http://www.silver-daggers.co.uk/demo/graphics.html

0
wzd3Commented:
Well, it's a little sluggish, but look at http://home.earthlink.net/~wzd3/rubberband.html

It uses the graphics package referred to above.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

wzd3Commented:
Forgot to say, be sure to click/release in the red box.  Drawing stops when the mouse leaves the box.  The box is just a DIV so you can make it whatever size you like.
0
mcm-mgmAuthor Commented:
I am going to wait for a better solution.  I looked at what you have proposed and found it doesn't work for explorer, is bulky and slow in other browsers.

The solution I am looking for should be fast and light, and powerful.
0
wzd3Commented:
I agree.  I just tried it to see how the graphics package worked, and was a little surprised at how slow it seemed.  I suspect you may want to looking other solutions than JavaScript.  Maybe shockwave?  I don't know much about its limits, but I think it is more amenable to realtime graphics.
0
mcm-mgmAuthor Commented:
Do you think it is possible to use a table and an tiny image on a div.  Set the table border to 0, and stretch the image from pointclick to mousenow, redrawing on mouse move?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.