PDA

View Full Version : Script doesn't work in IE8!! Help!!!



SamyCode
01-11-2011, 11:59 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:

The problem that I have is that for some reason this script just doesn't show the images in Internet Explorer 8. I have read many threads about it and I already tried the solutions (like update the fadeslideshow.js version and delete the
jQuery.noConflict() line). The only thing that I did was to put the slide inside tables to have it centralized. I still don't have the page live but I attached a zip file that include the index.html, the .css file and the fadeslideshow.js! I really don't like to be asking for help but I just can't realize why it works fine in every single other browser but Internet Explorer!!!

Thank you!

jscheuer1
01-11-2011, 12:17 PM
In your zip you have an index.html file. In its code there is:


<script type="text/javascript">


var mygallery2=new fadeSlideShow({
wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
dimensions: [500, 390], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://i67.photobucket.com/albums/h300/666Cradel666/bla1.jpg", "", "", "Nothing beats relaxing next to the pool when the weather is hot. jaofnsaofnaof noasn aofaofaofnasofas f asfhasofha"],
["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"],
["http://i30.tinypic.com/531q3n.jpg"],
["http://i31.tinypic.com/119w28m.jpg", "", "", "What a beautiful scene with everything changing colors."],//<--no trailing comma after very last image element!
],
displaymode: {type:'manual', pause:2500, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "always",
togglerid: "fadeshow2toggler"
})

</script>

See the highlighted line? Get rid of the trailing comma (red). Other browsers now error correct for this, but it's still a technical error and implies there's another one coming, but there isn't.

SamyCode
01-11-2011, 03:08 PM
Thank you!!!! What a stupid error. My area is console languages like C++, Visual Basic, Ruby and etc. I rarely deal with javascript so... sorry hehe. Thank you again man.