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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:05:23+00:00 2026-05-20T00:05:23+00:00

Not a clue what to call this question as it is an odd one.

  • 0

Not a clue what to call this question as it is an odd one.

Basically I have this code that moves an image slider along based on interactions with the left and right arrows. It worked fine yesterday and today after changing absolutely nothing it stopped working.

I’m assuming I’ve missed out a ; or a } or even a ) because this always seems to be the case with these stupid errors. I’m gunna run through and strip everything out to see where the problem is but in the mean time could someone look over this and just double check everything is written as it should be?

$(function(){   
    $("#rightArrow").hover(function() {
        $('.projectImages').animate({left: '-270px'}, 3000);
    });

    $("#leftArrow").hover(function() {
        $('.projectImages').animate({left: '0px'}, 3000);
    });

    $("#rightArrow").click(function() {
        $('.projectImages').css('left', '-270px');
        $('.projectImages').stop();
    });

    $("#leftArrow").click(function() {
        $('.projectImages').css('left', '0px');
        $('.projectImages').stop();
    });

    $(".arrow").mouseout(function() {
        $('.projectImages').stop();
    });
});

Cheers,
Sam

  • 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-05-20T00:05:24+00:00Added an answer on May 20, 2026 at 12:05 am

    Should try this way:

    $("#rightArrow").hover(function() {
        $('.projectImages').animate({left: '-270px'}, 3000);
    },function() {
        $('.projectImages').stop();
    });
    
    $("#leftArrow").hover(function() {
        $('.projectImages').animate({left: '0px'}, 3000);
    },function() {
        $('.projectImages').stop();
    });
    

    $.hover(infunc,outfunc) is a two parameter function, short version of for this: $.mouseenter(infunc).mouseleave(outfunc)

    EDIT: using mouseover and mouseout like Felix said is the best way imho.

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

Sidebar

Related Questions

This should work right? I have not a clue as to why it's not.
I have a question that I think should not be too complex. I have
I'm wondering what could cause this. I have several methods in my code that
Not sure if this counts as programming related, it's a tool that I use.
Not even sure I'm stating the question correctly. Here's the situation. I have a
I am working with a third-party COM component (i.e. do not have its code).
I have some code below which will not run due to me not being
I have a code in Which the call to push_back fails for me .
Sorry to be posting this question. :( But I have spent almost the entire
Please help me understand this. Here you can see that I have PYTHONPATH set

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.