自己写的总是很机械,比如说一个滑动效果,自己写的直接唰的出来了,没有一点滑动的效果

解决方案 »

  1.   

    可以用jQuery的animate自定义动画效果!
      

  2.   

    参考参考这个 希望对你有帮助哦 <script type="text/javascript">
       $(document).ready(function(){
        $("#box").jCarouselLite({
            btnPrev: "#prev",
    btnNext: "#next",
        auto: 4000,//图片停留时间
        scroll: 4,//每次滚动覆盖的图片个数
        speed: 1000, //设置速度,0是不动。其次就是数字越大 ,移动越慢。
        vertical: false,//横向(true),竖向(false)
        visible: 4, //显示的数量
        circular: true //是否循环
        });
    $("#boxImg ul li:not(:first)").hide();
    $("#box ul li").each(function(i){
    $(this).click(function(){
    $("#boxImg ul li").hide();
    $($("#boxImg ul li")[i%($("#box ul li").length/3)]).fadeIn("slow");
    })
    })
    });
    </script>