Announcement

Collapse
No announcement yet.

Auto-start the slider

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Auto-start the slider

    How can I adjust the slider to auto-start/play? Right now it doesn't start until it's clicked on.

    Leslie
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    #2
    Re: Auto-start the slider

    I did it at http://www.cloverelaffarmherbsandgifts.com using
    Code:
    $('.carousel').carousel({
      interval: 7000
    })
    Michael Davidson
    Picturesque
    http://picturesqueweb.com

    Comment


      #3
      Re: Auto-start the slider

      Very nice Michael, very nice. Did you edit the bootstrap.js or add this to the page itself? I tried adding this in the SFNT page in the <head> tag but it didn't fire:

      Code:
      <script>$('.carousel').carousel({
        interval: 7000
      })
      </script>



      On side side note, may suggest you consider changing your buttons to a soothing green tone similar to your nav bar?

      Many thanks!
      Leslie
      Leslie Kirk
      Miva Certified Developer
      Miva Merchant Specialist since 1997
      Previously of Webs Your Way
      (aka Leslie Nord leslienord)

      Email me: [email protected]
      www.lesliekirk.com

      Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

      Comment


        #4
        Re: Auto-start the slider

        LOL - I figured it out - I added it at the end of a js file the site was using.

        Many thanks!
        Leslie
        Leslie Kirk
        Miva Certified Developer
        Miva Merchant Specialist since 1997
        Previously of Webs Your Way
        (aka Leslie Nord leslienord)

        Email me: [email protected]
        www.lesliekirk.com

        Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

        Comment


          #5
          Re: Auto-start the slider

          FYI: you either need to place the script after its called, or better yet, use:

          Code:
          $( document ).ready(function() {
             
           //insert function here
          
          });
          to insure that all required resources are loaded before executing the function.

          The Document Ready function can be placed anywhere on the page.
          Bruce Golub
          Phosphor Media - "Your Success is our Business"

          Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
          phosphormedia.com

          Comment


            #6
            Re: Auto-start the slider

            Thank you for the tip Leslie about the buttons. The site isn't completed yet as too many orders are keeping us quite busy. Not a complaint of course! For the code, I created a separate js file to avoid editing bootstrap files and keep my personalized edits in one place. Updates will hopefully be easier. I've done the same with css edits as well.
            Michael Davidson
            Picturesque
            http://picturesqueweb.com

            Comment

            Working...
            X