Results 1 to 7 of 7

Thread: Using multiple before and after slider images

  1. #1
    Join Date
    Dec 2015
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Using multiple before and after slider images

    I successfully embedded code found here to accomplish this: http://www.appletonrealestatephoto.com/comparison

    I would like to do 3-5 more of these on the same page, but it always gets screwed up. I embed the same code instead a different table but the last time I tried the actual slider you use to move across the image wound up on image slider #1 above. I'm thinking there has to be an easy fix for this but with little coding experience I'm at a loss. Can this be done?
    Thanks--Mike.
    Last edited by Beverleyh; 12-08-2015 at 03:58 PM.

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. #3
    Join Date
    Dec 2015
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Beverleyh View Post
    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.
    Sorry, I believe it was this:

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

  4. #4
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    There are no multiple instances of the slider in your page. Unfortunately we can't troubleshoot something that isn't there. What would be best however is for you to setup a reduced case example with just 2 or 3 slider instances so we can see where you're going wrong without trawling through your other markup/code.

    As for the page you linked to, there are some structural errors to correct such as style tags in the body element and multiple jQuery library references in the page (you only need one), so you should aim to fix those too .
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  5. #5
    Join Date
    Dec 2015
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Beverleyh View Post
    There are no multiple instances of the slider in your page. Unfortunately we can't troubleshoot something that isn't there. What would be best however is for you to setup a reduced case example with just 2 or 3 slider instances so we can see where you're going wrong without trawling through your other markup/code.

    As for the page you linked to, there are some structural errors to correct such as style tags in the body element and multiple jQuery library references in the page (you only need one), so you should aim to fix those too .
    Yes, you're right they're not because I deleted the second table that made the first image have two sliders. When I tried to add another slider image, only one image showed up from the second table and the slider for some reason went to the first image where there already was a slider present.

  6. #6
    Join Date
    Dec 2015
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I tried to add another one again...this is what happens:

    http://www.appletonrealestatephoto.com/comparison
    Last edited by Beverleyh; 12-08-2015 at 10:19 PM.

  7. #7
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    There's a lot going on in your page so it would be better to setup a reduced test case that contains only basic structural markup and 2 or 3 instances of the slider.

    Tips:

    Use the correct structural markup for a web page. This means things like using style tags only in the head section.

    Use only one instance of the jQuery library, placed before all scripts that use it.

    Reference only one instance of the ddbeforeandafter CSS in the head of the web page doc. An external file is preferred (as per the demo).

    Reference only one instance of the ddbeforeandafter JS in the head section of the web page doc. An external file is preferred (as per the demo)

    Use multiple jQuery initialisations, each with a unique ID (as per the demo instructions).

    Use multiple HTML markup instances, each with a unique ID (as per the demo instructions)

    Please post back with the reduced example page, following the demo instructions (and the above tips) more carefully..
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

Similar Threads

  1. Replies: 0
    Last Post: 09-27-2011, 10:44 AM
  2. Multiple Featured Content Slider v2.4 Issue
    By eslaydon in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 02-04-2009, 03:58 AM
  3. Comveyor Belt script / random images and multiple images
    By MangledPuppy in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 07-30-2008, 01:31 PM
  4. scrolling images and multiple.gif images
    By phoneworks in forum Looking for such a script or service
    Replies: 6
    Last Post: 04-08-2008, 11:06 AM
  5. Multiple content slider in tabs problem
    By joomlafreak in forum JavaScript
    Replies: 4
    Last Post: 03-29-2007, 03:40 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
  •