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

  • SEARCH
  • Home
  • 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 8721807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:16:49+00:00 2026-06-13T07:16:49+00:00

I modified a simple image slider in jsfiddle and can’t figure out why I

  • 0

I modified a simple image slider in jsfiddle and can’t figure out why I can’t get it to work on my first clients website. Works fine in jsFiddle but not on the site.

It uses a couple other plugins for smooth scrolling (which I think I broke trying to transfer this over =/). This is one of my first ‘clients’ I took on to get my development portfolio going.

Here is a link to the jsFiddle code – http://jsfiddle.net/SbDpR/

JS snippet

$(document).ready(function() {

    var height = 340,
        width = 740,
        slides = 5,
        contentNum = 1;
    $('.testing').html("Content Number - " + contentNum);
    $('.main_inner').css({
    width: slides * width
    });
    $('.next a').click(function(){
        if (contentNum < slides) {  
           $('.main_inner').animate({
            marginLeft: '-' + (width * contentNum)
            }, 600);
            contentNum = contentNum + 1;
            $('.testing').html("Content Number - " + contentNum);
        } else {
           $('.main_inner').animate({
            marginLeft: '0'
            }, 600);
            contentNum = contentNum / contentNum;
             $('.testing').html("Content Number - " + contentNum);
        }
        return false;
    });

    $('.previous a').click(function(){
        if (contentNum > 1) {
           $('.main_inner').animate({
            marginLeft: '+=740'
            }, 600);
            contentNum = contentNum - 1;
            $('.testing').html("Content Number - " + contentNum);
        } else {
            $('.main_inner').animate({
            marginLeft: '-2960'
            }, 600);
            contentNum = 5;
            $('.testing').html("Content Number - " + contentNum);
        }
        return false;
    });
});​

Here is a link to the site to see it in action – http://skeptikalmedia.com/MOM/index.html

I’ve spent the last 4 hours trying to get it to work on the live site. I’ve copied/pasted/deleted/copied/pasted. Currently the script sits on the index page to make sure I didn’t miss importing a file or something.

Any ideas? I’m to the point where I’d almost pay for someone to tell me why it’s not working or turn the JSFiddle into a jQuery plugin.

  • 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-13T07:16:50+00:00Added an answer on June 13, 2026 at 7:16 am

    Your class .wrapper div has position: absolute;. Remove this, and everything looks as it is supposed to, either that, or alter your existing css as follows(position: static is the default positioning for html elements):

    .main_inner > div {
        position: static;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have taken and essentially lightly modified a jQuery image slider to operate how
I've been doing some skin detection but can't get a smooth one. The image
EDIT : related to PHP HTML DomDocument getElementById problems Can't get getElementById() to work.
I modified this simple countdown timer form here: https://github.com/lunaryorn/snippets/blob/master/qt4/countdown.py as follows. Now I want
How do I get the OpenGL color matrix transforms working? I've modified a sample
I have modified a slider script to mimic ebay's slider on home page. I
I'm writing an simple application for users to upload an image, modify it and
I modified a very simple php page on my server: <?php header(Location:http://www.google.com); ?> and
I have a View to get and set image from photo gallery. I want
I have a problem that might be a simple one, but can't find a

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.