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 6 of 6
  1. #1
    New Coder
    Join Date
    Jun 2010
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Easy Slider jQuery Plugin

    I set up the Easy Slider jQuery Plugin for this page, based on this tutorial and this demo, and the 4 images are showing up in a vertical column rather than being able to click to the next image. What am I doing wrong? Also, I don't see the next/prev arrow buttons, but that may fix itself once the images are positioned correctly.

  • #2
    Regular Coder
    Join Date
    Dec 2010
    Location
    California
    Posts
    201
    Thanks
    30
    Thanked 8 Times in 8 Posts
    post all your code! I am viewing from phone. some normal mistakes that one can make are fairly simple mistakes. do you have jquery library included for one? is your div name the same in your jquery and HTML? post all code including your jquery that you are suppose to include in your header! thx

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,740
    Thanks
    22
    Thanked 1,837 Times in 1,821 Posts
    Hello knightrider01,
    You've copied the CSS exactly and it's styling a ul in a div called #slider.

    Your markup has no #slider. Your images are in a ul contained in a div called #images.

    It also looks like your easySlider.js is not a .js at all, it's an HTML document misnamed as easySlider.js.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #4
    Regular Coder
    Join Date
    Dec 2010
    Location
    California
    Posts
    201
    Thanks
    30
    Thanked 8 Times in 8 Posts
    you need to import your easySlider.js file into your root folder. the html that Excavator is reffering to is a page that does not exist. you need to upload easySlider.js, and the same thing for jquery.js you need to have the library in order to use jquery. once you have these two documents uploaded then you need to change <div id="images"> to <div id="slider">. let me know if it works after that!

  • #5
    New Coder
    Join Date
    Jun 2010
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts
    ok, so I think I made the updates you both mentioned, and here's where I'm at.

    The images show up side by side across to the right rather than being in the "slider" format from the demo. I don't know what else I am missing.
    Last edited by knightrider01; 12-31-2010 at 07:06 AM.

  • #6
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,740
    Thanks
    22
    Thanked 1,837 Times in 1,821 Posts
    Quote Originally Posted by knightrider01 View Post
    ok, so I think I made the updates you both mentioned, and here's where I'm at.

    The images show up side by side across to the right rather than being in the "slider" format from the demo. I don't know what else I am missing.
    Getting closer. You're still missing some things though...
    the link to btn_next.gif and btn_prev.gif come up 404 and your CSS is still not matching the one your copying.
    Your missing
    Code:
     /* image replacement */
            .graphic, #prevBtn, #nextBtn{
                margin:0;
                padding:0;
                display:block;
                overflow:hidden;
                text-indent:-8000px;
                }
        /* // image replacement */
    I think you need to go through that tutorial again. Just start at the beginning and go through each step again.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Tags for this Thread

    Posting Permissions

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