Web Analytics Made Easy -
StatCounter how to select part of image using mouseclick - CodingForum

Announcement

Collapse
No announcement yet.

how to select part of image using mouseclick

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to select part of image using mouseclick

    there is image displayed on the server.Without drag and drop,by mouse click it should display a rectangular area of size 600X600(pixels) on the image with center of the rectangle is the point where the mouse is clicked.Then after the user will download/open image that is displayed within the rectangular area.

    any sample code please.
    Last edited by vsjapan; Feb 19, 2004, 01:04 AM.

  • #2
    You are going to need server side code to do this since JavaScript can not change the properties of an image to download with the new dimensions of chopping it.

    Look into php.....

    You will have to use JavaScript to position the rectangle on top of the image and pass the value to the php script.

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

    Comment


    • #3
      Originally posted by A1ien51
      You are going to need server side code to do this since JavaScript can not change the properties of an image to download with the new dimensions of chopping it.

      Look into php.....

      You will have to use JavaScript to position the rectangle on top of the image and pass the value to the php script.

      Eric
      Thanks a lot for yuor response.Any sample code please.

      Comment

      Working...
      X