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 9273573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:09:00+00:00 2026-06-18T16:09:00+00:00

Please help. This code works locally but not after I upload it to the

  • 0

Please help. This code works locally but not after I upload it to the remote server. It does not seem to be a cdn issue because I put an alert statement in as a test. The second statement is for a separate page and it works there. I am referencing the jQuery via cdn at the bottom of my html page with a link to my javascript file below that. Any help would be greatly appreciated.

$(document).ready(function () {
    $('.thmb').hover(function () {
        var x = $('.thmb').index(this);
        $('.info_art').eq(x).toggleClass("hover-animation");
    });
    $('.thmbs_pdg_div a').click(function (evt) {
        evt.preventDefault();
        var divname = this.name;
        $("#" + divname).show().siblings().hide();
    });
});

Here is the code I added at the end of the html page:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="javascript/jquery-1.8.2.min.js">  <\/script>')</script>
<script type="text/javascript" src="javascript/artwork.js"></script> 

Here is the url of the page: http://www.kipdeeds.com/artwork_page.html

Some additional information about the page that is not working: There are seven categories and the text for each category are sprites (e.g. “on paper”, “new art”, etc.). When one hovers the position should shift revealing a new image of the text with an arrow icon. The program I was writing would allow the corresponding image icons to enact the same affect in the sprite displaying the text.

For now I will not alter the code until I get feedback (ideas better than mine).

  • 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-18T16:09:02+00:00Added an answer on June 18, 2026 at 4:09 pm

    Your JS is fine.

    The problem is the disparity with your CSS and your images. Here’s you’re CSS:

    a.art_paper {
        background: url("../assets/artwork_page/on_paper.gif") repeat scroll 0 0 transparent;
        display: block;
        height: 20px;
        margin-top: 33px;
        width: 95px;
    }
    
    a:hover, #artwork_main_div .hover-animation {
        background-position: 0 -100px;
    }
    

    Her’s your image: enter image description here (95px x 20px)

    You are infinitely repeating your background-image, which happens to be 20px high. When the .hover-animation class is active, it’s sliding the background down by 100px, which takes you the 5th (100/20=5) vertical iteration of the image… which looks exactly like the original.

    enter image description here

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

Sidebar

Related Questions

Please i need help, this code below works fine on my localhost, php5.3+ but
Please help me with this: This code works fine except for cases in which
Please help me make this code works. I want to open an external EXE
This code works in IE8, Crome and Safari, but not in firefox: <script src=@Url.Content(~/Scripts/jquery-1.5.1.min.js)
I tried this code on IOS 4+ and it works perfectly, but not until
Could anyone please help me convert this code to vb.net, I have tried it
Could you please help me converting this c++ code into python: I am trying
Hey friends any one please help me for this issue.in this javascript code i
Please, help me. I dont know what is wrong with this code: import android.appwidget.AppWidgetProvider;
Please help this beginner here... I have a SQL Server 2008 R2 running on

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.