AcidMaX
11-28-2003, 02:36 PM
OK, I am a PHP programmer, but when it comes to JS im a n00b.
Basically what I am wanting to do is load up an image in a page. Allow someone the ability to drag a box around a particular portion of an image (only within that image). Once they have the box around the section they are wanting (i would like to define the parameters of the dragging box ... meaning I would like to keep it in proportion. Start off at 90x120 and expand within the same scale). They should also be able to move the box so they dont have to completely re-draw it.
From there I just need the co-ordinates etc so that I can pass this info off to a PHP script to crop the image at the proper dimension and locations.
If any one of you can help I would be greatly appreciative. I have seen some samples online but most dont fit the needs I have.
Anyhelp you can give would be very appreciated.
Thanks,
AJ
Basically what I am wanting to do is load up an image in a page. Allow someone the ability to drag a box around a particular portion of an image (only within that image). Once they have the box around the section they are wanting (i would like to define the parameters of the dragging box ... meaning I would like to keep it in proportion. Start off at 90x120 and expand within the same scale). They should also be able to move the box so they dont have to completely re-draw it.
From there I just need the co-ordinates etc so that I can pass this info off to a PHP script to crop the image at the proper dimension and locations.
If any one of you can help I would be greatly appreciative. I have seen some samples online but most dont fit the needs I have.
Anyhelp you can give would be very appreciated.
Thanks,
AJ