Results 1 to 3 of 3

Thread: Query on Ultimate Fade-in slideshow (v1.5)

  1. #1
    Join Date
    Jul 2006
    Posts
    95
    Thanks
    21
    Thanked 0 Times in 0 Posts

    Default Query on Ultimate Fade-in slideshow (v1.5)

    1) Script Title: Ultimate Fade-in slideshow (v1.5)

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

    3) Describe problem: The images that I am using come with same width but different heights. Is there anyway to go around it?

  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

    Find the fadeshow.prototype.populateslide function and replace it with this one:

    Code:
    fadeshow.prototype.populateslide=function(picobj, picindex){
    var slideHTML='<table width="100%" height="100%" border="0"><tr><td width="100%" height="100%" align="center" valign="middle">'
    if (this.theimages[picindex][1]!="") //if associated link exists for image
    slideHTML+='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
    slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
    if (this.theimages[picindex][1]!="") //if associated link exists for image
    slideHTML+='</a>'
    slideHTML+='</td></tr></table>'
    picobj.innerHTML=slideHTML
    }
    Set the width of the slideshow to the width as usual but set the height to the maximum height of your tallest image:

    Code:
    new fadeshow(fadeimages, 140, 225, 0, 3000, 0)
    Last edited by jscheuer1; 08-06-2006 at 09:52 AM.
    - John
    ________________________

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

  3. #3
    Join Date
    Jul 2006
    Posts
    95
    Thanks
    21
    Thanked 0 Times in 0 Posts

    Default

    Thank you John, you are excellent, you know?

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
  •