PDA

View Full Version : Resolved Ultimate Fade-In Slideshow not showing up in IE8



nyscooterclub
08-04-2010, 01:41 AM
1) Script Title: Ultimate Fade-In Slideshow v2.4

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

3) Describe problem: My slideshow is working in Firefox, but on IE8 it isn't showing up at all. No images. Not sure about other browsers like Safari.

I've checked everything I know how. Ideas?

My site: http://www.nyscooterclub.com/forum

nyscooterclub
08-04-2010, 01:44 AM
Here is my 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="http://www.nyscooterclub.com/images/ads/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: [468, 60], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://www.nyscooterclub.com/images/ads/scootersobanner.gif", "http://www.scootersoriginali.com", "_new"],
["http://www.nyscooterclub.com/images/ads/scooterbottegabanner.bmp", "http://www.scooterbottega.com/", "_new"],
["http://www.nyscooterclub.com/images/ads/motosportbannernew.jpg", "http://www.motosportbrokerage.com", "_new"],
["http://www.nyscooterclub.com/images/ads/stevenfriedbanner.gif", "http://www.siflaw.com/", "_new"],
["http://www.nyscooterclub.com/images/ads/statefarmbannernew.jpg", "http://www.hobokensf.com", "_new"],
["http://www.nyscooterclub.com/images/ads/newenoughbanner.jpg", "http://www.newenough.com", "_new"],
["http://www.nyscooterclub.com/images/ads/zoomscooterbanner.gif", "http://www.zoomscooternyc.com/", "_new"],
["http://www.nyscooterclub.com/images/ads/potamkinbanner.jpg", "http://www.vespapotamkin.com", "_new"],
["http://www.nyscooterclub.com/images/ads/vespajcbanner.jpg", "http://www.vespajc.com", "_new"],
["http://www.nyscooterclub.com/images/ads/scooterworksbanner2.gif", "http://www.scooterworks.com/",],
["http://www.nyscooterclub.com/images/ads/scooterwestbanner.gif", "http://www.scooterwest.com", "_new"],
["http://www.nyscooterclub.com/images/ads/scootstockbanner.jpg", "http://www.longislandscooterclub.com", "_new"] //no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:30000, cycles:0, randomize:true},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
})

</script>

jscheuer1
08-04-2010, 02:44 AM
Get rid of the trailing comma (red):


. . . ["http://www.nyscooterclub.com/images/ads/scooterworksbanner2.gif", "http://www.scooterworks.com/",],
["http://www.nyscooterclub.com/images/ads/scooterwestbanner.gif", "http://www.scooterwest.com", "_new"],
["http://www.nyscooterclub.com/images/ads/scootstockbanner.jpg", "http://www.longislandscooterclub.com", "_new"]
],
displaymode: {type:'auto', pause:30000, cycles:0, randomize:true},
persist: false,
fadeduration: 500,
})

It's technically invalid to have a comma after the last item in an object (this is an object) or an array, but most browsers these days will error correct that for you. IE will not.

nyscooterclub
08-04-2010, 05:44 PM
Bingo, thank you. :D