Results 1 to 2 of 2

Thread: Two blending image Slide Show Scripts

  1. #1
    Join Date
    Oct 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Two blending image Slide Show Scripts

    1) Script Title: Blending Image Slide Show Script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/image4.htm

    3) Describe problem: I've had this script working on a site for a while now (really cool!!!) and now want to add a second instance of a slide show. I've gone through the script, basically creating the new arrays (using different var names, of course) and changing the variable names for the counters, etc. However, now neither instance is working. Any help at all would be appreciated!!

    Here's the header code:

    <!--

    //*****************************************
    // Blending Image Slide Show Script-
    // © Dynamic Drive (www.dynamicdrive.com)
    // For full source code, visit http://www.dynamicdrive.com/
    //*****************************************

    //specify interval between slide (in mili seconds)
    var slidespeed=3000

    //specify images
    var slideimages=new Array("http://www.grnonline.com/images/FrBenedictGroeschel.jpg","http://www.grnonline.com/images/DrRayGuarendi.jpg","http://www.grnonline.com/images/DrColeenMast.jpg","http://www.grnonline.com/images/Fr.John Corapi.jpg","http://www.grnonline.com/images/FrFrancisMary.jpg","http://www.grnonline.com/images/Chandler and Mary- Web site.jpg","http://www.grnonline.com/images/Mother Angelica.bmp")

    //specify corresponding links
    var slidelinks=new Array("fullImage.php?id=18","fullImage.php?id=17","fullImage.php?id=16","fullImage.php?id=14","fullImage.php?id=19","fullImage.php?id=33","fullImage.php?id=34")

    //specify caption text
    var captionText=new Array("Fr. Benedict Groeschel","Dr. Ray Guarendi","Dr. Colleen Mast","Fr. John Corapi","Fr. Francis Mary","Love for Our Mother","Mother Angelica")

    var slideimagesSponsor=new Array("http://www.grnonline.com/sponsors/kofc2.gif","http://www.grnonline.com/sponsors/tamp.gif","http://www.grnonline.com/sponsors/doctor.gif","http://www.grnonline.com/sponsors/ignatius.gif")

    //specify corresponding links
    var slidelinksSponsor=new Array("http://www.grnonline.com","http://www.grnonline.com","http://www.grnonline.com","http://www.ignatius.com/books/radio/GUradio.htm")

    //specify caption text
    var captionTextSponsor=new Array("St Stephen's of Midland","Tampico's Spanish Inn","Dr Ghassan Fanous","Ignatius Press")

    var newwindow=1 //open links in new window? 1=yes, 0=no

    var imageholder=new Array()
    var ie=document.all
    for (i=0;i<slideimages.length;i++){
    imageholder[i]=new Image()
    imageholder[i].src=slideimages[i]

    var imageholderSponsor=new Array()
    for (i=0;i<slideimagesSponsor.length;i++){
    imageholderSponsor[i]=new Image()
    imageholderSponsor[i].src=slideimagesSponsor[i]

    }

    function gotoshow(){
    if (newwindow)
    window.open(slidelinks[whichlink])
    else
    window.location=slidelinks[whichlink]
    }

    function gotoshowSponsor(){
    if (newwindow)
    window.open(slidelinksSponsor[whichlinkSponsor])
    else
    window.location=slidelinksSponsor[whichlinkSponsor]
    }

    //-->

    and here's the body code for instance one:

    <!--

    var whichlinkSponsor=0
    var whichimageSponsor=0
    var capnumSponsor=0
    var blenddelaySponsor=(ie)? document.images.slideSponsor.filters[0].duration*1000 : 0
    function slideit2(){
    if (!document.images) return
    if (ie) document.images.slideSponsor.filters[0].apply()
    document.images.slideSponsor.src=imageholderSponsor[whichimageSponsor].src
    if (ie) document.images.slideSponsor.filters[0].play()
    whichlinkSponsor=whichimageSponsor
    capnumSponsor=whichimageSponsor
    whichimageSponsor=(whichimageSponsor<slideimagesSponsor.length-1)? whichimageSponsor+1 : 0
    setTimeout("slideit2()",slidespeed+blenddelaySponsor)
    document.forCaptionsSponsor.captionsSponsor.value=captionTextSponsor[capnumSponsor]
    }

    slideit2()

    //-->

    And instance two (which was actually the first one I had up...):

    <!--

    var whichlink=0
    var whichimage=0
    var capnum=0
    var blenddelay=(ie)? document.images.slide.filters[0].duration*1000 : 0
    function slideit(){
    if (!document.images) return
    if (ie) document.images.slide.filters[0].apply()
    document.images.slide.src=imageholder[whichimage].src
    if (ie) document.images.slide.filters[0].play()
    whichlink=whichimage
    capnum=whichimage
    whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
    setTimeout("slideit()",slidespeed+blenddelay)
    document.forCaptions.captionsText.value=captionText[capnum]
    }

    slideit()

    //-->

  2. #2
    Join Date
    Oct 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry, Posted This Question From A Search....did Not See The Sticky Post About This Issue.

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
  •