这是代码
<script type="text/javascript">
$(window).load(function() {
$('.flexslider').flexslider({
animation: "fade"
});
$().UItoTop({ easingType: 'easeOutQuart' });
});
</script>
这是代码
<script type="text/javascript">
$(window).load(function() {
$('.flexslider').flexslider({
animation: "fade"
});
$().UItoTop({ easingType: 'easeOutQuart' });
});
</script>
一切对我来说都很好,请检查是否包含所有必要的资源,在我的示例中是:
脚本:
<script type='text/javascript' src="http://flexslider.woothemes.com/js/jquery.flexslider.js"></script>
<script type='text/javascript' src="http://flexslider.woothemes.com/js/jquery.easing.js"></script>
<script type='text/javascript' src="http://flexslider.woothemes.com/js/jquery.mousewheel.js"></script>
<script type='text/javascript' src="http://lab.mattvarone.com/projects/jquery/totop/js/jquery.ui.totop.js"></script>
CSS:
<link rel="stylesheet" type="text/css" href="http://flexslider.woothemes.com/css/flexslider.css">
<link rel="stylesheet" type="text/css" href="http://lab.mattvarone.com/projects/jquery/totop/css/ui.totop.css">
工作小提琴:http: //jsfiddle.net/IrvinDominin/cusuy/