Results 1 to 2 of 2

Thread: Preloaded slideshow image size not adjusting

  1. #1
    Join Date
    Jun 2008
    Location
    Huntsville, Alabama USA
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Preloaded slideshow image size not adjusting

    1) Script Title: Preloaded slideshow by Jason Moon

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/index.html

    3) Describe problem: I changed my image width/height attributes inside the <IMG> tag to the dimensions of the first image in my slideshow, as directed. It works but it applies that image size to all the images, distorting them since they are different sizes. My question is how do I make my images appear in their actual size?

    And thank you in advance for helping me with this.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Warning: Please include a link to the DD script in question in your post.


    I would recommend:

    http://www.dynamicdrive.com/dynamici...army/index.htm

    which when properly configured can gracefully handle images of varying dimensions that will fit within the defined area for the slideshow, and will center them within that area.

    However, just to be clear, it will not scale images that are larger than the area you define.

    Other slide shows might be better for that, but you will basically be relying upon the browser to scale your images. The key in such a situation is to only define the width, or to only define the height. That way most browsers will scale the missing dimension for any given image to the one supplied for it.
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    dfaust (07-15-2008)

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
  •