PDA

View Full Version : UFade Slideshow



mkumar
07-25-2012, 10:44 AM
Hello, I download the fadeslide show javascript program and I put my pictures. it works in all browser except internet explorer. so please help to solve this problem. i am posting all my codes.
home page of my website
-------------------------------------------------------------------------------------

<script type="text/javascript" src="fadeslideshow.js"></script>
<script type="text/javascript">
<!--
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [970, 250], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["photo/DSC_0052.jpg"],
["photo/DSC_0054.jpg"],
["photo/DSC_0056.jpg"],
["photo/DSC_0057.jpg"],
["photo/DSC_0066.jpg"],
//<--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: ""
})

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>

-------------------------------------------------------------------------------------
Please help if anyone khow............

jscheuer1
07-25-2012, 03:04 PM
In the future, please post about Dynamic Drive Scripts in the Dynamic Drive Scripts Help section here where I've moved this thread, and:

Warning: Please include a link to the DD script(s) in question in your post. See this post (http://www.dynamicdrive.com/forums/showpost.php?p=7) for more information.

That said, here is the problem:



var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [970, 250], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["photo/DSC_0052.jpg"],
["photo/DSC_0054.jpg"],
["photo/DSC_0056.jpg"],
["photo/DSC_0057.jpg"],
["photo/DSC_0066.jpg"],
//<--no trailing comma after very last image element!

Get rid of that last red comma.