ondblclick selects image
I'm writing a script that makes an IMG sprite move around the page to wherever the user clicks. If they double click then the sprite moves twice as fast.
My script gets the mouse position on the click, and repeatedly increments the IMG's left and top values until it reaches the click location.
For some reason, the ondblclick event works as intended, but selects the IMG so it turns blue. Any idea why this is or what I could do to stop it?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)