Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Ultimate fade-in slideshow

  1. #11
    Join Date
    Jan 2006
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks Twey.

    What you say there looks complicated at first, but then makes a lot of sense when you read it slowly!
    Thanks for explaining!

    If you have time, would you mind looking at my other post:

    Multiple fade-in slideshows
    Thanks

  2. #12
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Sorry, I don't know enough about DreamWeaver to help you there. I'd suggest coding the pages yourself.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #13
    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

    I just got Fangs! and my link is to the home page, as an update is available.

    Playing with it, if all you want is one alt for the slide show, that can be inserted without changing the array(s) of images:

    Code:
    fadeshow.prototype.populateslide=function(picobj, picindex){
    var slideHTML=""
    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+'" alt="Slideshow" title="" border="'+this.imageborder+'px">'
    if (this.theimages[picindex][1]!="") //if associated link exists for image
    slideHTML+='</a>'
    picobj.innerHTML=slideHTML
    }
    But it does appear twice, once for the image loaded and once for the image ready to go at the time the reader is invoked. In other words, as this script always has two images coded to the innerHTML of the slideshow divisions, only those two images actually coded to the innerHTML at the time the reader is invoked will be read. This would also be the case for the individual alt attributes as outlined before.
    - John
    ________________________

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

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
  •