Results 1 to 2 of 2

Thread: Ultimate Fade-in slideshow: code not working

  1. #1
    Join Date
    Apr 2010
    Location
    New York
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Exclamation Ultimate Fade-in slideshow: code not working

    I'm using the slideshow in two ways, one on the home page, another in the left sidebar.

    in the left sidebar area, the 2nd widget with the rotating flyers, it works on the home page, but not on any other pages:
    http://alldesignedforyou.com/whiskey/

    Thanks ahead of time.

    I used this code: http://www.dynamicdrive.com/dynamici...nslideshow.htm

    HTML Code:
    <script type="text/javascript">
    
    
    
    
    var mygallery=new fadeSlideShow({
    	wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
    	dimensions: [600, 400], //width/height of gallery in pixels. Should reflect dimensions of largest image
    	imagearray: [
    				["http://alldesignedforyou.com/whiskey/wp-content/uploads/2010/03/fg1.png"],
    		["http://alldesignedforyou.com/whiskey/wp-content/uploads/2010/03/fg2.png"],
    		["http://alldesignedforyou.com/whiskey/wp-content/uploads/2010/03/fg3.png"],
    		["http://alldesignedforyou.com/whiskey/wp-content/uploads/2010/03/fg4.png"],
    		["http://alldesignedforyou.com/whiskey/wp-content/uploads/2010/03/fg5.png"],
    		["http://alldesignedforyou.com/whiskey/wp-content/uploads/2010/03/fg6.png"],
    		["http://alldesignedforyou.com/whiskey/wp-content/uploads/2010/03/fg7.png"],
    		["http://alldesignedforyou.com/whiskey/wp-content/uploads/2010/03/fg8.png"]
    	],
    	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: ""
    })
    
    var mygallery=new fadeSlideShow({
    	wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
    	dimensions: [200, 262], //width/height of gallery in pixels. Should reflect dimensions of largest image
    	imagearray: [
    				["http://alldesignedforyou.com/whiskey/wp-content/uploads/2010/04/widget-flyer1.png"],
    		["http://alldesignedforyou.com/whiskey/wp-content/uploads/2010/04/widget-flyer2.png"],
    		["http://alldesignedforyou.com/whiskey/wp-content/uploads/2010/04/widget-flyer3.png"]
    	],
    	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>
    Last edited by adfy; 04-02-2010 at 08:53 PM.

  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

    Using:

    Code:
    var mygallery=
    twice is a bad idea, but the source code on the menu page shows that you are not doing that there. One issue there is that there is no division with the id 'fadeshow1', so that is causing an error. Either make one or get rid of:

    Code:
    var mygallery=new fadeSlideShow({
    	wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
    	dimensions: [600, 400], //width/height of gallery in pixels. Should reflect dimensions of largest image
    	imagearray: [
    				["http://alldesignedforyou.com/whiskey/wp-content/uploads/2010/03/fg1.png"],
    		["http://alldesignedforyou.com/whiskey/wp-content/uploads/2010/03/fg2.png"],
    		["http://alldesignedforyou.com/whiskey/wp-content/uploads/2010/03/fg3.png"],
    		["http://alldesignedforyou.com/whiskey/wp-content/uploads/2010/03/fg4.png"],
    		["http://alldesignedforyou.com/whiskey/wp-content/uploads/2010/03/fg5.png"],
    		["http://alldesignedforyou.com/whiskey/wp-content/uploads/2010/03/fg6.png"],
    		["http://alldesignedforyou.com/whiskey/wp-content/uploads/2010/03/fg7.png"],
    		["http://alldesignedforyou.com/whiskey/wp-content/uploads/2010/03/fg8.png"]
    	],
    	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: ""
    })
    for that page.

    I also see that you've included jQuery twice on that page, once here:

    HTML Code:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    and again here:

    HTML Code:
    <script type='text/javascript' src='http://alldesignedforyou.com/whiskey/wp-includes/js/jquery/jquery.js?ver=1.3.2'></script>
    Since you are obviously hosting this script, I'd stick with the second one, but move it to where the first one is. There might be a problem for the later code that uses jQuery then though. If so remove:

    Code:
    jQuery.noConflict()
    from near the beginning of the fadeslideshow.js file.

    There could also be other problems.
    - 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
  •