Results 1 to 4 of 4

Thread: BG Carousel only shows first slide

  1. #1
    Join Date
    Jul 2017
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default BG Carousel only shows first slide

    1) Script Title: Background Image Carousel v1.1

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...bgcarousel.htm

    3) Describe problem: I got it working, but it only shows the first photo in the series of four. If I manually forward it, it shows the last photo for a fraction of a second, but it's all pushed to the right side and it just flashes for a second. All the options are default values, the only thing I changed was the path for the photos. The first one shows perfectly. The navigation gifs show on all frames, and they have the same path as the other graphics. I also removed the optional description, just to see if it helped (it didn't). I know this is something dumb, but I'm not finding it.

    Here's a link to the page:
    http://www.hitmanbluesband.com/index_experimental.html


    Thanks, in advance, for your help.

    - Russ

  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

    There could also be other problems but the first two descriptions have invalid markup:

    Code:
    <script type="text/javascript">
    
    var firstbgcarousel=new bgCarousel({
    	wrapperid: 'mybgcarousel', //ID of blank DIV on page to house carousel
    	imagearray: [
    		['./slideshow/audience1.jpg', '<div align="left"><img src="images/hitman cropped logo for website.jpg" width="100" height="66">'], //["image_path", "optional description"]
    		['./slideshow/balcony.jpg', '<div align="left"><img src="images/hitman cropped logo for website.jpg" width="100" height="66">'],
    		['./slideshow/slide1.jpg', 'The scent of spring invigorates her as she inhales whilst the warm breeze brings a wave of tranquility.'],
    		['./slideshow/bass.jpg','holder'],
    		['./slideshow/slide2.jpg', 'Alone and Lonliness- Peace and Inner Struggle'] //<--no trailing comma after very last image element!
    	],
    	displaymode: {type:'auto', pause:3000, cycles:2, stoponclick:false, pauseonmouseover:true},
    	navbuttons: ['./slideshow/left.gif', './slideshow/right.gif', './slideshow/up.gif', './slideshow/down.gif'], // path to nav images
    	activeslideclass: 'selectedslide', // CSS class that gets added to currently shown DIV slide
    	orientation: 'h', //Valid values: "h" or "v"
    	persist: true, //remember last viewed slide and recall within same session?
    	slideduration: 500 //transition duration (milliseconds)
    })
    
    </script>
    Try closing the divs:


    Code:
    <script type="text/javascript">
    
    var firstbgcarousel=new bgCarousel({
    	wrapperid: 'mybgcarousel', //ID of blank DIV on page to house carousel
    	imagearray: [
    		['./slideshow/audience1.jpg', '<div align="left"><img src="images/hitman cropped logo for website.jpg" width="100" height="66"></div>'], //["image_path", "optional description"]
    		['./slideshow/balcony.jpg', '<div align="left"><img src="images/hitman cropped logo for website.jpg" width="100" height="66"></div>'],
    		['./slideshow/slide1.jpg', 'The scent of spring invigorates her as she inhales whilst the warm breeze brings a wave of tranquility.'],
    		['./slideshow/bass.jpg','holder'],
    		['./slideshow/slide2.jpg', 'Alone and Lonliness- Peace and Inner Struggle'] //<--no trailing comma after very last image element!
    	],
    	displaymode: {type:'auto', pause:3000, cycles:2, stoponclick:false, pauseonmouseover:true},
    	navbuttons: ['./slideshow/left.gif', './slideshow/right.gif', './slideshow/up.gif', './slideshow/down.gif'], // path to nav images
    	activeslideclass: 'selectedslide', // CSS class that gets added to currently shown DIV slide
    	orientation: 'h', //Valid values: "h" or "v"
    	persist: true, //remember last viewed slide and recall within same session?
    	slideduration: 500 //transition duration (milliseconds)
    })
    
    </script>
    As I say though, there could also be something else. (I just tested it and that seems to be the only issue with the slideshow, though the page itself has other errors.)

    The browser cache may need to be cleared and/or the page refreshed to see changes.
    Last edited by jscheuer1; 07-06-2017 at 03:18 PM. Reason: tested it
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    therealex (07-06-2017)

  4. #3
    Join Date
    Jul 2017
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Dang, i knew it was something dumb! I'm on the road right now, but I'll check when i get back Saturday. I'm guessing that's it, though.

    Thanks!

  5. #4
    Join Date
    Jul 2017
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Yup

    That was it. Works like a charm now! Thank you for the help!

    - Russ

    Quote Originally Posted by jscheuer1 View Post
    There could also be other problems but the first two descriptions have invalid markup:

    Code:
    <script type="text/javascript">
    
    var firstbgcarousel=new bgCarousel({
    	wrapperid: 'mybgcarousel', //ID of blank DIV on page to house carousel
    	imagearray: [
    		['./slideshow/audience1.jpg', '<div align="left"><img src="images/hitman cropped logo for website.jpg" width="100" height="66">'], //["image_path", "optional description"]
    		['./slideshow/balcony.jpg', '<div align="left"><img src="images/hitman cropped logo for website.jpg" width="100" height="66">'],
    		['./slideshow/slide1.jpg', 'The scent of spring invigorates her as she inhales whilst the warm breeze brings a wave of tranquility.'],
    		['./slideshow/bass.jpg','holder'],
    		['./slideshow/slide2.jpg', 'Alone and Lonliness- Peace and Inner Struggle'] //<--no trailing comma after very last image element!
    	],
    	displaymode: {type:'auto', pause:3000, cycles:2, stoponclick:false, pauseonmouseover:true},
    	navbuttons: ['./slideshow/left.gif', './slideshow/right.gif', './slideshow/up.gif', './slideshow/down.gif'], // path to nav images
    	activeslideclass: 'selectedslide', // CSS class that gets added to currently shown DIV slide
    	orientation: 'h', //Valid values: "h" or "v"
    	persist: true, //remember last viewed slide and recall within same session?
    	slideduration: 500 //transition duration (milliseconds)
    })
    
    </script>
    Try closing the divs:


    Code:
    <script type="text/javascript">
    
    var firstbgcarousel=new bgCarousel({
    	wrapperid: 'mybgcarousel', //ID of blank DIV on page to house carousel
    	imagearray: [
    		['./slideshow/audience1.jpg', '<div align="left"><img src="images/hitman cropped logo for website.jpg" width="100" height="66"></div>'], //["image_path", "optional description"]
    		['./slideshow/balcony.jpg', '<div align="left"><img src="images/hitman cropped logo for website.jpg" width="100" height="66"></div>'],
    		['./slideshow/slide1.jpg', 'The scent of spring invigorates her as she inhales whilst the warm breeze brings a wave of tranquility.'],
    		['./slideshow/bass.jpg','holder'],
    		['./slideshow/slide2.jpg', 'Alone and Lonliness- Peace and Inner Struggle'] //<--no trailing comma after very last image element!
    	],
    	displaymode: {type:'auto', pause:3000, cycles:2, stoponclick:false, pauseonmouseover:true},
    	navbuttons: ['./slideshow/left.gif', './slideshow/right.gif', './slideshow/up.gif', './slideshow/down.gif'], // path to nav images
    	activeslideclass: 'selectedslide', // CSS class that gets added to currently shown DIV slide
    	orientation: 'h', //Valid values: "h" or "v"
    	persist: true, //remember last viewed slide and recall within same session?
    	slideduration: 500 //transition duration (milliseconds)
    })
    
    </script>
    As I say though, there could also be something else. (I just tested it and that seems to be the only issue with the slideshow, though the page itself has other errors.)

    The browser cache may need to be cleared and/or the page refreshed to see changes.

Similar Threads

  1. Multiple slide shows
    By Andrea in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 07-09-2009, 02:36 PM
  2. Replies: 1
    Last Post: 09-22-2008, 04:12 AM
  3. Sequential Slide Shows
    By Adam M in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 06-28-2007, 09:09 PM
  4. Image Slide Shows
    By ludwig in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 02-11-2005, 01:58 PM
  5. Blending two slide shows
    By huski in forum JavaScript
    Replies: 0
    Last Post: 09-07-2004, 12:11 AM

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
  •