View Full Version : images getting selected with document event handlers

09-16-2005, 08:21 AM
Here's the page: http://reallycoolspace.com/rearrange.html

This only happens in IE. If you hold Ctrl while clicking on a few of the images you'll notice that in the last div you click on, the image itself gets selected. Also, this only happens when you click in the box the image is in, not on the actual image. I can't for the life of me figure out why.

All of the source is on that one page. Can someone please take a look and see if you can find the problem.

Thanks a lot!

09-16-2005, 09:49 AM
Try adding onselectstart="return false" on each image or div.

09-16-2005, 04:39 PM
That didn't seem to work on the images, only when I applied it to the whole document. And I need people to be able to select other text. Any other ideas?

09-19-2005, 09:06 AM
Have you tried it on the divs containing the images?