PDA

View Full Version : Black Box slideshow v.2.4



paqman
09-29-2010, 06:21 AM
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

azoomer
09-29-2010, 06:44 AM
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


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