Results 1 to 4 of 4

Thread: how to specify width & height of the image in light box image viewer

  1. #1
    Join Date
    Nov 2008
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question how to specify width & height of the image in light box image viewer

    1) Script Title: LIght box image viewer

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...box2/index.htm

    3) Describe problem:How to specify the image width and height ,so that if the image is bigger one,it can display in fixed width and height what we have given.

    Thanks in Advance....

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,127
    Thanks
    44
    Thanked 3,228 Times in 3,189 Posts
    Blog Entries
    12

    Default

    If you are going to specify the width and height anyway, why not just resize the image in an image editing program? It will load faster, and there are other benefits to doing it that way.

    However, if you were to specify dimensions or even resize the image as suggested, how would you know that they are correct for a given user's screen/window.

    If that type of thing is an issue, use LightWindow:

    http://www.stickmanlabs.com/lightwindow/

    Which can be set to automatically adjust the size of the image to fit in the user's browser.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Nov 2008
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    hi,

    But we giving user to upload images in any sizes.So on clicking each images which is uploaded by user, we want to give him light box to view images.And display as fixed width image.weather he has uploaded big/medium images.

    So can we set fixed image width/height for the litebox view.

  4. #4
    Join Date
    Nov 2008
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Can anyone tell me about to fix width & height of the image in light box......

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
  •