I\'m trying to create a kind of slideshow.
The problem:
function slides(x) { $(\"#irack\").stop().animate({\"left\": x}, 20); }; setInterval
In you call to setInterval the slides method is being called inline change the call to as below:
setInterval(function(){slides(-30);},300);