Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Can you put 2 slideshows on the same page

  1. #1
    Join Date
    May 2009
    Location
    Greensboro, GA
    Posts
    163
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default Can you put 2 slideshows on the same page

    I'm using w3.css slideshow http://www.w3schools.com/w3css/w3css_slideshow.asp
    I have 1 working slideshow right now.
    Is there a way to put a second one on the same page.
    Thanks

  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

    Not that one.
    - John
    ________________________

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

  3. #3
    Join Date
    May 2009
    Location
    Greensboro, GA
    Posts
    163
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Thanks. Any suggestion for a SIMPLE slideshow with options for captions

  4. #4
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    488
    Thanks
    0
    Thanked 62 Times in 58 Posts

    Default

    This is about as easy as it gets and you can have as many as you like on a single page:

    http://www.dynamicdrive.com/dynamici...nslideshow.htm

    The only downside I have found is that you have to hack the JavaScript code to change the background colour as it's not possible to do it in the slide show settings and any attempts I made to do it with CSS failed.

  5. #5
    Join Date
    May 2009
    Location
    Greensboro, GA
    Posts
    163
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Thanks. I was looking at that one too

  6. #6
    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

    You can use css to change the background color:

    Code:
    #fadeshow1 .gallerylayer {background-color: white !important;}
    Where fadeshow1 is the wrapperid configured for the slideshow. Or omit the id selector from the style declaration and it will cover all slideshows.
    - John
    ________________________

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

  7. #7
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    488
    Thanks
    0
    Thanked 62 Times in 58 Posts

    Default

    Thanks John. I'll try that.

  8. #8
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    The background-color is the weak point of the slideshow in more than one respect. If you want the background to be transparent, then adding background-color: transparent!important to the styles results in a NON-TRANSPARENT BLACK background, because that's the default background given in the js-file. You can solve this problem by replacing all occurrences of background:'black' in the js-file with background:'transparent', but then another problem arises. If the images of the show don't have the same (original) dimensions - they don't have to, in a responsive version of the show - then fading from a bigger image into a smaller one gives a 'jerkish' non-fluid result. You can correct this by giving the show a non-transparent background (like background-color: white!important), but that's not what you wanted in the first place.

    As for the possibility of having multiple slideshows on your page (post #1), you can use the same code over and over again by using a 'multiple-iframes approach'.

  9. #9
    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

    The overriding keyword !important has always worked for me, even to set the background to transparent. But you also have to set the wrapperid selector to transparent as well*, because, yep you guessed it, it's also black. But it's true that if the images are of different sizes or have their own transparent areas that differ from each other, you still have a problem. You either need a fairly major overhaul of the script or you need to give the .gallerylayers the same background as what is behind the slideshow, which if it's an image can be tricky as far as positioning it to line up goes, and if it includes other content, very tricky, if not impossible. I've set some of these up for folks with background images. It is quite tricky sometimes.

    *ex:
    Code:
    #fadeshow1, #fadeshow1 .gallerylayer {background-color: transparent !important;}
    This strategy might even be best for when you want a solid color background, as the wrapperid div will otherwise still be black and might show for a moment or two as the slideshow loads.
    Last edited by jscheuer1; 03-06-2017 at 08:11 PM. Reason: add info
    - John
    ________________________

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

  10. #10
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Quote Originally Posted by jscheuer1 View Post
    The overriding keyword !important has always worked for me, even to set the background to transparent.
    But the real problem is that, when you have made everything transparent, then image-transition is not fluid anymore when going from a larger image to a smaller one. So fluid image transition depends on non-transparency with this script.
    Last edited by molendijk; 03-06-2017 at 09:36 PM.

Similar Threads

  1. Two Swiss Army Slideshows in one .aspx page
    By mmfarmani in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 07-08-2012, 07:13 AM
  2. Two image slideshows on one page
    By Missouri Missing in forum Looking for such a script or service
    Replies: 0
    Last Post: 10-07-2008, 09:35 PM
  3. Two Vertical Slideshows on one page??
    By Antiquexplorer in forum Looking for such a script or service
    Replies: 2
    Last Post: 08-08-2008, 06:56 AM
  4. Dual Slideshows with alignment on one page
    By rcourt64 in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 02-02-2005, 01:43 PM
  5. Multiple slideshows on same page
    By senator in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 09-13-2004, 06:28 PM

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
  •