Results 1 to 2 of 2

Thread: Black Box slideshow v.2.4

  1. #1
    Join Date
    Sep 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Black Box slideshow v.2.4

    1) Script Title: No black box on safari but black box on firefox

    2) Script URL (on DD): <code><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

    <script type="text/javascript" src="fadeslideshow.js">

    /***********************************************
    * Ultimate Fade In Slideshow v2.0- (c) 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 this script and 100s more
    ***********************************************/

    </script>

    <script type="text/javascript">


    var mygallery=new fadeSlideShow({
    wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
    dimensions: [383, 264], //width/height of gallery in pixels. Should reflect dimensions of largest image
    imagearray: [
    ["images/img.jpg",],
    ["images/imgmain1.jpg"],//link,blank,rollovertext
    ["images/imgmain2.jpg"], //<--no trailing comma after very last image element!
    ["images/imgmain3.jpg"], //<--no trailing comma after very last image element!
    ["images/imgmain4.jpg"], //<--no trailing comma after very last image element!
    ],
    displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false, randomize:true},
    persist: false, //remember last viewed slide and recall within same session?
    fadeduration: 500, //transition duration (milliseconds)
    descreveal: "always",
    togglerid: ""
    })


    </code>

    3) Describe problem: black box only pops up on a couple of the images in firefox but works fine in safari

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    I'm not sure if this will fix your problems, but there are a couple of errors in the code. You need to remove the two red commas
    Code:
    var mygallery=new fadeSlideShow({
    wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
    dimensions: [383, 264], //width/height of gallery in pixels. Should reflect dimensions of largest image
    imagearray: [
    ["images/img.jpg",],
    ["images/imgmain1.jpg"],//link,blank,rollovertext
    ["images/imgmain2.jpg"], //<--no trailing comma after very last image element!
    ["images/imgmain3.jpg"], //<--no trailing comma after very last image element!
    ["images/imgmain4.jpg"], //<--no trailing comma after very last image element!
    ],
    displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false, randomize:true},
    persist: false, //remember last viewed slide and recall within same session?
    fadeduration: 500, //transition duration (milliseconds)
    descreveal: "always",
    togglerid: ""
    })
    The last one will make the slideshow fail in IE

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
  •