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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:28:08+00:00 2026-06-04T09:28:08+00:00

so here is the script: <script> var div = $(#gridline1); $(document.body).mousemove(function(e){ if(e.pageX<630){div.animate({right:’+=1′},1);} else {div.animate({left:’+=2′},1);}

  • 0

so here is the script:

<script>
var div = $("#gridline1");
$(document.body).mousemove(function(e){ 
if(e.pageX<630){div.animate({right:'+=1'},1);}
else {div.animate({left:'+=2'},1);}
});
</script>

Its working, but when it gets after the “else” its stop doing the “if” statement.
Please help.

http://jsfiddle.net/nxaFG/

  • 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-04T09:28:10+00:00Added an answer on June 4, 2026 at 9:28 am

    I’m not sure what HTML or CSS you are using, and the effect may depend on those as well. However, I think you can just replace right:'+=1' with left:'-=1'. Here is a working example: http://jsfiddle.net/katylava/kagnr/

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

Sidebar

Related Questions

Here is my script: <script type=text/javascript> $(document).ready(function () { $(.div_question).toggle(function () { var answer=
here is my code.. <script type=text/javascript> function clicker(){ var thediv=document.getElementById('downloadoverlay'); if(thediv.style.display == none){ thediv.style.display
Here is my Javascript... <script type=text/javascript> function validator() { var x = parseInt(document.MyForm.textnuming.value); alert(x);
Here is the script: var currentCat = all; $(document).ready(function(){ $(.categoryItem).click(function(event){ $(#browseBookArea).fadeToggle(100); currentCat = $(this).attr(id);
I can better explain it with Raw script. <script> $(document).ready(function () { $(Div). //lock
I am making a countdown timer with JavaScript. Here is my script. var seconds_left
Here's my tiny script to run celeryd: #!/bin/bash -x LOG=/home/var/log/ingest.log sudo -u apache bash
Here is some testing code: <script> var movieList = new Array(); var friendList= ;
Here are the problem scripts: This is from the HTML file: <script type=text/javascript> var
var ex = /(<script\s?[^>]*>)([\s\S]*)(<\/script>)/; //Note: here is 2 script tags var str = '<script>\nvar

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.