Results 1 to 2 of 2

Thread: image zooming

  1. #1
    Join Date
    Oct 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default image zooming

    I have a webpage with an image and two buttons (zoomin and zoomout).
    I want:
    - When I click on zoomin, the cursor will change into zoomin cursor whenever it is over the image, and similarly when I click on zoomout, it will change into zoomout cursor whenever it is over the image.
    - When the cursor is zoomin, if I click on the image, the image will be zoomed in for 10%, and similarly for zoomout.

    Anyone can help me to write code for the above purpose?

    Thanks in advance.

  2. #2
    Join Date
    Sep 2005
    Location
    Connecticut
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Well, you could create a photo for each zoom, and then create code that allows the zoomed image to be displayed when the user clicks on the image. For the magnify cursor, you wouldn't be able to change the cursor to a magnify cursor (as far as i know), but you could use the crosshair or the resize cursors from this script.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •