Click to See Complete Forum and Search --> : How to use javascript to to select an area?


david1661
08-07-2003, 09:58 PM
Hi,

i want to let the user to select an rectangle area over a picture in my homepage, how can i achieve that using javascript?

thx

Khalid Ali
08-08-2003, 01:33 AM
You will need to do some calculations.

What you can do is get the mouse pointer locations at mousedown and then get x and y co-ords until mouse is up and from those values you can create a right rectangle