请教这个网页顶部的图片滚动效果是如何实现的?多谢
请问这个网页顶部的图片滚动效果是怎么实现的?谢谢
就是这个:http://www.nilock.com/2011/05/19/a-parallax-scrolling-demo/comment-page-1/
大家帮我看看,谢谢啦,我是新手……
------解决方案--------------------
就是这个: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); })