mhalpin13
12-19-2011, 01:10 PM
Hello all,
i was wanting a loop image fader for my index page and came across this i set it up as instructed but when previewing it in my browser all i can see is a black box. i can't see where I've gone wrong.
below is in the head section... (all links are correct)
<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: [410, 234], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["main_image.png", "link", "", "des"],
["main_image2.png", "link", "", "des"],
["main_image3.png", "link", "", "des"],
["main_image4.png", "link", "", "des"],
["main_image5.png", "link", "", "des"],
["main_image6.png", "link", "", "des"] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</script>
then this...(in place in my content section)
<div id="fadeshow1"></div>
thank you for the help
michael
i was wanting a loop image fader for my index page and came across this i set it up as instructed but when previewing it in my browser all i can see is a black box. i can't see where I've gone wrong.
below is in the head section... (all links are correct)
<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: [410, 234], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["main_image.png", "link", "", "des"],
["main_image2.png", "link", "", "des"],
["main_image3.png", "link", "", "des"],
["main_image4.png", "link", "", "des"],
["main_image5.png", "link", "", "des"],
["main_image6.png", "link", "", "des"] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</script>
then this...(in place in my content section)
<div id="fadeshow1"></div>
thank you for the help
michael