Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8830289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:02:43+00:00 2026-06-14T08:02:43+00:00

I have a simple web page which I’ve been trying to set up a

  • 0

I have a simple web page which I’ve been trying to set up a slider using SlidesJS.

This is how the required files are linked in the HTML page.

<head>
    <script type="text/javascript" src="js/jquery-1.8.2.js"></script>
    <script type="text/javascript" src="js/slides.min.jquery.js"></script>
    <script type="text/javascript" src="js/common.js"></script> <!-- the JS function is in here -->
</head>

And I have put the loading.gif and the pagination.png in the images in the images folder.

This is the HTML of the page.

<div id="container">
<div id="slider-space">
    <div class="slides-container">
        <div>
            <img src="http://i.imgur.com/kLMCP.png" />
        </div>
        <div>
            <img src="http://i.imgur.com/aX675.png" />
        </div>
        <div>
            <img src="http://i.imgur.com/UyE1g.png" />
        </div>
        <div>
            <img src="http://i.imgur.com/uzc7c.png" />
        </div>
        <div>
            <img src="http://i.imgur.com/Zh8sQ.png" />
        </div>
    </div><!-- end of slides-container -->
</div><!-- end of slider-space -->
</div><!-- end of container -->

Here’s the CSS

#container {
    position:fixed;
    width:100%;
    height:100%;
    top:0px;
    left:0px;
}

#slider-space {
    position:relative;
    margin-left:auto;
    margin-right:auto;
    margin-top:10%;
    width:500px;
    height:260px;
    background-color:#F96;    
}

.slides-container img {
    width:500px;
    height:260px;
}

.slides-container div {
    display:block;
    width:500px;
    height:260px;
}​
​

And here’s the JavaScript code

$(document).ready(function(e) {
    $('#slider-space').slides({
        preload: true,
        preloadImage: '/images/loading.gif',
        play: 5000,
        pause: 2500,
        hoverPause: false,
        pagination: true
    });
});

But the slider does not show up at all! The images are just displaying one under the other like this,

enter image description here
​
Can anyone please tell me what am I missing here and what should be done to correct it?

Thanks very much.

If its too confusing. to get a better understanding please see the fiddle here.

EDIT :

Okay, I got it working. Now the sliding works fine. However there’s a slight problem with the pagination. The small circles which are supposed to appear don’t show up. Only the numbers. Look below enter image description here

I have put the pagination.png in my images folder. Is there a way I can set the path to it in the script or something?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T08:02:45+00:00Added an answer on June 14, 2026 at 8:02 am

    Your div class should be “slides_container” instead of “slides-container” – give that a shot.

    Editing to address your new issue with the pagination: you are missing all of the CSS associated with the pagination. Please look at the “Images with captions” example, in the global.css file.

    You need the below CSS:

    /*
        Pagination
    */
    
    .pagination {
        margin:26px auto 0;
        width:100px;
    }
    
    .pagination li {
        float:left;
        margin:0 1px;
        list-style:none;
    }
    
    .pagination li a {
        display:block;
        width:12px;
        height:0;
        padding-top:12px;
        background-image:url(../img/pagination.png);
        background-position:0 0;
        float:left;
        overflow:hidden;
    }
    
    .pagination li.current a {
        background-position:0 -12px;
    }
    

    As you can see, you can set the path of the pagination.png file in the background-image attribute of .pagination li a

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is for a simple web-page assignment. I have a few pages on which
I have a simple web page which looks like this. When clicked on the
If I have a simple web page and script that looks like this: <body>
I have this simple javascript function which changes the body zoom of the web
I have a simple web page in which the user will enter some information
I have a simple web page navigation bar which is working well. Now I
Recently, I wrote a simple web application. I currently have. A static page which
I have a very simple YUI3 script which changes background of a web page.
I have a simple ASP.NET web form on a page, which is contained in
I have a (simple) web page packed in a phonegap app. If I start

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.