【发布时间】:2012-05-05 16:07:35
【问题描述】:
我在我的页面上设置了一个自动寻呼机,以允许无限滚动。我还使用 jQuery 来更改悬停在图像上的图像的不透明度。但是,动画仅适用于第一页,而不是自动加载的连续页面。知道为什么会这样吗?或者有什么方法可以解决这个问题?谢谢。
这是我用于图像和自动寻呼机的代码:
<script type="text/javascript">
$(document).ready(function(){
$(".post").animate({opacity:.8});
$(".post").hover(function(){$(this).stop().animate({opacity:1}, "fast");}, function(){
$(this).stop().animate({opacity:.8}, "slow");
});
});
</script>
<script type="text/javascript" src="http://static.tumblr.com/q0etgkr/J5bl3lkz1/tumblrautopagernopage.js"></script>
【问题讨论】:
-
没有看到您的代码,任何人都无法有效地回答这个问题。
标签: javascript jquery animation scroll infinite-scroll