SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member lisamariexo's Avatar
    Join Date
    Aug 2012
    Location
    England
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Trying to add a slider into my website...

    so im trying to add a slider to my website. i got the code off here but i just really can't understand step 4! someone help? i've inserted the script type etc and changed the ']' to '>' etc, but i just dont understand how to do the rest!

  2. #2
    SitePoint Addict
    Join Date
    Apr 2011
    Posts
    265
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    I think the step 4 says to get and include in your page the js files: jquery.js, and scripts.js using this syntax:
    Code:
    <script src="path_and_name_of_js_file.js" type="text/javascript"></script>
    Free: Web Programming Courses HTML, CSS, Flash
    Web Programming: AJAX Course and PHP-MySQL Course video Lessons
    Good JavaScript and jQuery course for beginners

  3. #3
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,117
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    Yes, if you look at the source code of their demo page, you will see this in the <head> section of the page:

    Code:
    <script type="text/javascript">var _siteRoot='index.html',_root='index.html';</script>
    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript" src="scripts.js"></script>
    They are saying to put that code on your own page, and then makes sure that you have the jquery.js and scripts.js files in the same folder as the page. (You can store those scripts elsewhere, but you then need to change the paths. E.g. if you decide to put those script files in a /scripts/ folder in your main folder, the paths would change to something like

    Code:
    <script type="text/javascript" src="/scripts/jquery.js"></script>
    etc. In the example code they give you to download, they place the scripts in a /js/ folder, and link to them like this:

    Code:
    <script type="text/javascript" src="js/jquery.js"></script>
    That's fine too. The example code they give you should show you everything you need, as it's all there.
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."


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
  •