View Single Post
Old 06-12-2012, 03:12 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,383
Thanks: 18
Thanked 350 Times in 349 Posts
sunfighter is on a distinguished road
Quote:
Originally Posted by kristinachilds View Post
i'm very new to javascript so please be gentle
This is jquery, it's a shorthand library for javascript.

If statement must be in parentheses.
Code:
if $("#target").css('background-position') == {x:-754} {
Code:
if ($("#target").css('background-position') == {x:-754}) {
Don't know if this will fix your problem, but it is on the list. You have a second if statement .
sunfighter is offline   Reply With Quote