我的两个javascript代码不起作用

时间:2013-03-22 00:54:26

标签: jquery

我在一页中使用此代码

<script type="text/javascript" src="catalog/view/javascript/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery.nivo.slider.pack.js"></script>
<script type="text/javascript" src="catalog/view/javascript/slides.min.jquery.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jcarousellite_1.0.1.min.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery.lavalamp.min.js"></script>    
<script type="text/javascript" src="catalog/view/javascript/jquery.easing.min.js"></script>


<script type="text/javascript">

        $(function(){
            $('#slides').slides({
                preload: true,
                preloadImage: 'img/loading.gif',
                play: 5000,
                pause: 2500,
                hoverPause: true,
                animationStart: function(current){
                    $('.caption').animate({

                    },100);
                    if (window.console && console.log) {
                        // example return of current slide number
                        console.log('animationStart on slide: ', current);
                    };
                },
                animationComplete: function(current){
                    $('.caption').animate({

                    },200);
                    if (window.console && console.log) {
                        // example return of current slide number
                        console.log('animationComplete on slide: ', current);
                    };
                },
                slidesLoaded: function() {
                    $('.caption').animate({

                    },200);
                }
            });
        });


    </script>  



<script type="text/javascript">

     $(function() {
            $("#3").lavaLamp({
                fx: "backout",
                speed: 700,
                click: function(event, menuItem) {
                    return false;
                }
            });
        });

    </script>

如何消除这种冲突? 我在一个页面中一起使用, 所以任何人都可以提供帮助

它正在使用(幻灯片放映和幻灯片菜单) 我不知道该怎么办

0 个答案:

没有答案