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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:49:09+00:00 2026-05-23T08:49:09+00:00

Hi I am currently working on a script given to me by my boss

  • 0

Hi I am currently working on a script given to me by my boss and it is not working in all browsers except IE.

Now he is using the CSS property left to animate it so he has a variable which gets the current value of left. For example lets say left is equal to -100px.

Now once it has this value it adds 10px onto the value to make it move in from the left.

Now my issue lies with parseInt() and the "px" prefix at the end of the number. it keeps returning NaN instead of the value of left.

Does anyone know how to fix this problem?

Thanks in advance


UPDATE:
Ok I have rewritten the code and it can be viewed here, by re-written I mean I have took my bosses code and changed variable names and commented it to make it easier to understand and see what it trying to be accomplished with the javascript.

Now the slider is meant to make he selected DIV slide in from the left and into place (the DIV is offet by -760px) in IE this works fine, but not in any other browser. I have however come up with a fix in a way for the other browsers. by removing the px in the stylesheet from the end of -760 it causes the DIV to appear but it does not slide in how it should.

To make it easier im going to supply the sliders html and CSS for them here to hpefully help a little.

The HTML

The CSS

  • 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-23T08:49:10+00:00Added an answer on May 23, 2026 at 8:49 am

    try catch

    try{
      w=parseInt(document.getElementById("slideDiv").style.left+"make me string");
    }catch(e){
      w=0;
      alert(e.toString());
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I`m currently working on a script, and I have the following situation. function somnicefunction()
I'm currently working on a PowerShell script to analyse VPN traffic by reading the
I'm currently working on a jQuery script that will translate the site's text into
I am working on a AJAX/jquery notification script. Currently it retunrs a whole fhtml
I'm currently working on a conversion script to transfer a bunch of old data
I'm using svn in a script (Windows scripting .cmd file). Currently it checks out
i'm currently working on a script to randomize different values of input. Here is
I am currently working on a project written in Java and I am using
Working with Active Directory export script. Currently, the script easily exports user objects from
I'm currently working on a little harvester, using this dataset of 2700 foundations .

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.