2013-06-21 73 views
-5

我怎样才能使文本在它移动的滑块改变股利内容..后10秒

在firsty它显示了一些文本和一段时间后,可能会出现一些其他的文字。我如何使用jQuery和CSS来做到这一点?

+0

看到[LINK](http://stackoverflow.com/questions/6398526/javascript-jquery-or-something-to-change-text -every-some-seconds) – Aravind30790

+2

你有什么试过的? –

+0

使用'setInterval()'和jQ的'.animate()'函数。希望这可以帮助。 – Jai

回答

0

把它放在

setTimeout(function(){ 

    //Your code here 

},10000); 
1

我知道这个问题将被关闭(我已经投票决定关闭自己)。但是,让你开始,尝试使用这样的事情..

setInterval(function(){ 

    $('#slider').html(new Date()); 

},1000);