Hello, I learning javascript and trying to reverse engineer something I found on a site to understand it.
Here is a link to the full script... http://jsfiddle.net/WHQKA/
I have gotten to understand most of it so I know what is going on and can learn from it.
However this line it confusing to me and I can not find any reference information. I am hoping that someone can simply explain it so I can grow.
$('.top:first').stop().animate({
'left': (direction === 0) ? '-100%' : '100%' // I don't understand the infor after the colon :
},400);
So, I want to understand the direction and the negative and positve after that.
Many Thanks!
Tim