Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help adding a jQuery Slider

    Hi

    I'm trying to make a cool Q&A page like on
    http://davidwalsh.name/dw-content/fancy-faqs-jquery.php

    There's instructions here:
    http://davidwalsh.name/jquery-sliders

    I understand adding the HTML part

    I assume the CSS part is just adding that code anywhere on my .CSS page

    But where do I add The jQuery JavaScript part and how?

    The site is http://www.hoffmanfit.com and is being done in Wordpress. Thanks!

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,474
    Thanks
    6
    Thanked 980 Times in 953 Posts
    You put the JavaScript into a JS file and reference this in the head of your HTML document. But don’t forget to include the jQuery core library, too.
    Code:
    <head>
    <meta …>
    …
    <link rel="stylesheet" href="styles.css">
    …
    <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script> <!-- core library -->
    <script type="text/javascript" src="js/mycustomscripts.js"></script> <!-- your own script -->
    …
    </head>

  • #3
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, thanks for the help! I got it to work but when you click on any of the questions the answer doesn't stay down.... it moves down, and then back up ???

    http://hoffmanfit.com/qa/
    Last edited by bonerville; 02-07-2012 at 05:06 AM.

  • #4
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    nevermind.... I made something else work that I've been working on. Thanks though


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •