Results 1 to 2 of 2

Thread: UFade Slideshow

  1. #1
    Join Date
    Jul 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default UFade Slideshow

    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
    -------------------------------------------------------------------------------------
    Code:
    <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............
    Last edited by jscheuer1; 07-25-2012 at 03:02 PM. Reason: Format

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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 for more information.


    That said, here is the problem:

    Code:
    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •