0
我用jquery创建了一些动画条。我只是真的在学习jQuery & javascript。昨晚它正在工作,酒吧在某个滚动位置上动画,但现在它不起作用,没有任何改变。任何人都帮助我?还是有更好的方法来做到这一点,而不是我在做什么?滚动位置的动画条
$(document).ready(function(){
$(document).scroll(function() {
var top = $(document).scrollTop();
console.log(top);
if (top > 930) $("#html, #css").animate({width:"100%"}, 2000);
if (top > 930) $("#javascript").animate({width:"70%"}, 2000);
if (top > 930) $("#php").animate({width:"50%"}, 2000);
if (top > 930) $("#mysql").animate({width:"30%"}, 2000);
if (top > 930) $("#wordpress").animate({width:"60%"}, 2000);
});
});
嗯,我只是想它作为330的实际网站,它仍然无法正常工作......我想我想通了,又出现了生命的下方未封闭的评论吧剧本,我关闭那现在它工作...我没有意识到这会影响它?谢谢 – user1375823 2013-02-25 15:27:09