Results 1 to 2 of 2

Thread: Resizing The Image once Selected using the Thumbnail Viewer

  1. #1
    Join Date
    Mar 2010
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Resizing The Image once Selected using the Thumbnail Viewer

    1) Script Title: Image Thumbnail Viewer

    2) http://www.dynamicdrive.com/dynamicindex4/thumbnail.htm

    3) Is it possible to resize the Image once selected?

    The script looks very neat and I am looking to use it to display the photos on my website. I have a small thumbnail picture, which I have been able to reduce to the size required; however when I click on the image it opens at the Image File size (2160px x 1708px). This is naturally too big for the window.

    Is there a method of resizing this within the script?

    Thanks

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Sure, try the below modified .js file. Then within your image tag, insert a new rev attribute that specifies the desired dimensions for the enlarged image:

    Code:
    <p><a href="listenmusic.jpg" rel="thumbnail" rev="300,250" title="This is beautiful castle for sale!">Castle</a></p>
    DD Admin

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
  •