开发者

How can I stop this scroll

var f1; var f2; var i=1; var again_again = 1; function again() {

go(); } functi开发者_开发问答on go() { $('.floater').animate({ left: "-=200px"}, 4000, 'linear', again); }


var f1; 
var f2; 
var i=1; 
var again_again = 1; 

function again() { 
    //again_again = 1 - again_again; 
    //alert('sai'+ i); 
    i++; go(); 
} 

function init() { 
    f1 = $('#f1'); 
    f2 = $('#f2'); 
    go(); 
} 

function go() { 
    $('.floater').animate({ left: "-=200px"}, 4000, 'linear', again); 
} 

use code sample for better view

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜