Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5

Thread: can anyone spot

  1. #1
    Senior Member
    Join Date
    Apr 2016
    Posts
    717
    Member #
    53891
    Liked
    11 times

    can anyone spot

    so im trying to add the following image slider to my page (working offline) but nothings working.

    BeaverSlider: perhaps the best free image slider for JavaScript based on jQuery.

    it comes with 2 js files and the need to link to the jquery file online, and one css file, I have linked the js files htrough my own directory, and also added the css in a separate file so I have links to two css files, heres my html

    <!doctype html>
    <html lang="en">


    <head>

    <title>Pratts of Carlow Ltd</title>

    <link rel="stylesheet" href="../css/landing.css" />
    <link rel="stylesheet" href="../css/slider.css" />

    <meta http-equiv="x-ua-compatible" content="text/html" charset="utf-8">
    <meta name="description" content="Pratts of Carlow are an award winning, Family run Italian automobile specialist based in Carlow town">
    <meta name="keywords" content="">

    <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
    <script src="../javascript/slidereffects.js"> </script>
    <script src="../javascript/slider.js"> </script>

    <script>

    $(function(){
    var slider = new BeaverSlider({
    structure: {
    container: {
    id: "my-slider",
    width: 720,
    height: 420
    }
    },
    content: {
    images: [
    "../images/124.jpg",
    "img/2.jpg"
    ]
    },
    animation: {
    effects: effectSets["slider: big set 2"],
    interval: 1000
    }
    });
    });

    </script>

    </head>



    <body>

    <header>


    <div id="title">
    <h1> Pratts of Carlow Ltd </h1>
    <h6> <span id="one">Italian </span> <span id="two"> Automobile </span> <span id="three"> specialists </span></h6>
    </div>


    <div id="imgbox">
    <img src="../images/fiatlogo.png" />
    <img src="../images/fiatpro.png" width="90" height="76" />
    <img src="../images/alfaromeo.png" width="76" height="76" />
    <img src="../images/abarth.png" width="100" height="76" />
    </div>


    <img id="ribbon" src="../images/ribbon.jpg" height="25" width="100%" />


    <nav>
    </nav>


    </header>



    </body>


    </html>
    the way I see it the problem must be in the html as the other code was literally copy and pasted so it cant really be wrong, any help greatly appreciated

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    You don't have a my-slider div. It's called imgbox.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Senior Member
    Join Date
    Apr 2016
    Posts
    717
    Member #
    53891
    Liked
    11 times
    you mean imgbox is the id of the div? is it ok to link 2 css files?

  5. #4
    Senior Member
    Join Date
    Apr 2016
    Posts
    717
    Member #
    53891
    Liked
    11 times
    do I just have to add a div with the id of imgbox? because I did that and its not working

  6. #5
    Senior Member
    Join Date
    Apr 2016
    Posts
    717
    Member #
    53891
    Liked
    11 times
    never mind this I got it sorted


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 11:46 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com