Results 1 to 2 of 2

Thread: Multi Frame Slideshow

  1. #1
    Join Date
    Nov 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Multi Frame Slideshow

    To All:

    I need some help with the MultiFrame Image Slideshow code that I am trying to use from the dynamic drive webpage. I have six images that I am using. I would like to stop at the 6th one and keep all the image highlighted instead of them cycling to opaque. Can someone please give me a hand with this.

    Below is the code from the dynamic drive website.

    I would like it to go thorugh once illuminating the images and then stop and keep them illuminated.

    http://www.dynamicdrive.com/dynamici...frameslide.htm
    Last edited by jscheuer1; 11-23-2011 at 02:20 AM. Reason: substitute link to code for code

  2. #2
    Join Date
    Nov 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I know got this portion of code to partial work. However I get an error on about document.getElementByID

    <tr>
    <div align="left">
    <table width="800" border="0">
    <tr valign="top">
    <td style="height: 125px; width: 600px; text-align: top;">
    <table width="600" border="0">
    <tr valign="top">
    <td style="text-align: top;">
    <script type="text/javascript">

    /***********************************************
    * MultiFrame Image Slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    ***********************************************/

    var seqslides=new Array()
    //Set Path to Image plus optional URL ("" for no URL):
    seqslides[0]=["%ATTACHURLPATH%/1SW_Evol.jpg", ""]
    seqslides[1]=["%ATTACHURLPATH%/2SW_Evol.jpg", ""]
    seqslides[2]=["%ATTACHURLPATH%/3SW_Evol.jpg", ""]
    seqslides[3]=["%ATTACHURLPATH%/4SW_Evol.jpg", ""]
    seqslides[4]=["%ATTACHURLPATH%/5SW_Evol.jpg", ""]
    seqslides[5]=["%ATTACHURLPATH%/6SW_Evol.jpg", ""]

    //Set pause between each image display (2000=2 second):
    var slidedelay=1000

    //Set how many images to show at once (must be less than total # of images above):
    var slidestoreveal=6

    //Specify code to insert between each slide (ie: "<br>" to insert a line break and create a vertical layout)
    //"" for none (or horizontal):
    var slideseparater=""

    //Set optional link target to be added to all images with a link:
    var optlinktarget="secwindow"

    //Set image border width:
    var imgborderwidth=0

    //Set opacity value of each image when it's "dimmed", and when it's not, respectively (1=100% opaque/normal).
    //Change 0.2 to 0 to completely hide image when it's dimmed:
    var opacityvalues=[0.1,1]

    ///No need to edit beyond here///////////

    function processimgcode(theimg){
    var imghtml=""
    if (theimg[1]!="")
    imghtml='<a href="'+theimg[1]+'" target="'+optlinktarget+'">'
    imghtml+='<img src="'+theimg[0]+'" border="'+imgborderwidth+'" style="filter:alpha(opacity='+(opacityvalues[0]*100)+');-moz-opacity:'+opacityvalues[0]+'">'
    if (theimg[1]!="")
    imghtml+='</a>'
    return imghtml
    }

    var curslide=1 //var to track current slide (total: slidestoreveal)
    var curimgindex=0 //var to track current image (total: seqslides.length)
    var isfirstcycle=1 //boolean to indicate whether this is the first cycle

    if (document.getElementById){
    for (i=0;i<slidestoreveal;i++)
    document.write('<span id="seqslide'+i+'" class="seqslidestyle">'+processimgcode(seqslides[i])+'</span>'+slideseparater)
    curimgindex=slidestoreveal
    illuminateslide(0,opacityvalues[1])
    }

    function illuminateslide(slideindex, amt){
    var slideobj=document.getElementById("seqslide"+slideindex).getElementsByTagName("IMG")[0]
    if (slideobj.filters)
    slideobj.filters.alpha.opacity=amt*100
    else if (slideobj.style.MozOpacity)
    slideobj.style.MozOpacity=amt
    }

    function displayit(){
    if (curslide<=slidestoreveal){
    illuminateslide(curslide, opacityvalues[1])
    curslide++
    }
    else{
    for (i=0;i<slidestoreveal;i++)
    illuminateslide(i, opacityvalues[0])
    illuminateslide(0, opacityvalues[1])
    curslide=1
    }
    }

    if (document.getElementById)
    var multitimer=setInterval("displayit()",slidedelay)


    </script></div>
    </tr>
    </tr>
    </td>

    </table>
    <table>

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
  •