循环功能在一段时间后停止工作

时间:2013-03-19 09:43:00

标签: jquery-cycle

我的页面上有两个循环功能。它工作几分钟,然后停止工作。

脚本1:

                   <script type='text/javascript'>          
                   function pageLoad(sender, args){$('#Vertical').cycle({ 
                   fx: '" + Effect + "'
                   ,sync: 0,
                   prev:'#Verticalprev',
                   next:'#Verticalnext'
                    if (Easing != "0")
                       ,easing: '" + Easing + "'

                   });
                    //On mouseover pause the slider
                   $('#Vertical').mouseover(function() {
                   $('#Vertical').cycle('pause');
                   return false;
                   });

                    //On mouseout start the slider
                   $('#Vertical').mouseout(function() { 
                   $('#Vertical').cycle('resume');
                   }); 

                   }</script>

脚本2:

                   <script type='text/javascript'>                       
                   function pageLoad(sender, args){$('#Horizontal').cycle({ 
                   fx: '" + Effect + "'
                   ,sync: 0,
                   prev:'#prev',
                   next:'#next'
                    if (Easing != "0")
                       ,easing: '" + Easing + "'

                   });


                    //On mouseover pause the slider
                   $('#Horizontal').mouseover(function() {
                   $('#Horizontal').cycle('pause');
                   return false;
                   });

                    //On mouseout start the slider
                   $('#Horizontal').mouseout(function() { 
                   $('#Horizontal').cycle('resume');
                   }); 

                   }</script>

任何人都能帮助我吗?

0 个答案:

没有答案