我正在考虑撰写一部 co,每当新闻发行人向下个图像/新闻项目移动时都会更新。 当用户返回网页时,它将自动从下一个新闻项目开始滚动器,帮助确保我们的用户看到所有项目。
i am using the anything scroller by chris coyier et al, with php to pull in the news data.
每人
这甚至可行? 假设最多10个新闻项目,网站就会放慢。
edit this is the could trying to get some output to the browser / console... but nothing.
<script>
// Set up Sliders
// **************
$(function(){
$( #slider ).anythingSlider({
theme : minimalist-round ,
easing : swing ,
infiniteSlides : true,
delay : 8000, // How long between slideshow transitions in AutoPlay mode (in milliseconds)
resumeDelay : 8000, // Resume slideshow after user interaction, only if autoplayLocked is true (in milliseconds).
animationTime : 1, // How long the slideshow transition takes (in milliseconds)
autoPlayLocked : true, // If true, user changing slides will not stop the slideshow
})
$( #slider ).bind( slide_complete , function(event, slider){
console.debug( You are on page + slider.currentPage );
// Do something else
})
});
</script>