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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:07:39+00:00 2026-06-14T01:07:39+00:00

So I have a pretty simple problem here, been looking all over the web

  • 0

So I have a pretty simple problem here, been looking all over the web but I’m unable to find any answers. I have a page with some JQuery – the first set animates a bunch of buttons with set values (which works fine in IE). I however get some problems when I try to use:

left: '+=1024'

This is only not working in IE, in fact, it buggers out the whole of the script. This is the section that I use it in (it just basically moves the background with some buttons):

//BG rotator
  $counter = 2;

//left-btn
$("#left-btn").click(function(){
    $("#rotator").animate({
        left: '+=1024',
    },1000); 
    --$counter;
    if ($counter == 1) {
        $("#left-btn").css("display", "none");
    } else {
        $("#left-btn").css("display", "block");
        $("#right-btn").css("display", "block");
    }
});

What I initially thought was to just grab the current left property of the div, and assign that to a variable, but for some reason using a variable with the left animation wasn’t working either. I tested all of the code, everything works when I remove that “left” bit in the animation.

Any help would be appreciated, thanks!

  • 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-14T01:07:40+00:00Added an answer on June 14, 2026 at 1:07 am

    change this line and see if works:

    left: '+=1024px' // <-- note the missing ,
    

    as there is a JavaScript error in IE7 because the trailing comma is not allowed – see Can you use a trailing comma in a JSON object?

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

Sidebar

Related Questions

I have a pretty simple problem, but right now can't seem to see the
I have a pretty simple problem. Basically I have an array called $list that
I have a problem with WCF. My testing code is pretty simple. I call
I have a pretty simple ASP.NET Web Form that looks a bit like the
I have a pretty simple case which I started solving using foreach(), but then
I've been stuck on this likely very simple problem, but haven't gotten anywhere with
I'm sure it's something obvious, but I'm pretty stuck here. I have a LAMP
This seems like a pretty common problem, but I haven't found any sort of
Last Edit: Resolved! Well, i was unable to find the ENTIRE answer here but
I'm pretty new to c#, so my question might be simple, but here goes.

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.