就是这个:http://www.nilock.com/2011/05/19/a-parallax-scrolling-demo/comment-page-1/
大家帮我看看,谢谢啦,我是新手……
------解决方案--------------------
- JScript code
$( function($) { var current = 0; setInterval(function(){ if(current==-6000) {current=0;} current -=600; $('#header-background').animate({backgroundPosition:current+"px 0px"},25000); },2500); })