我有这个代码
var timeout = 0;
$('#container td').each(function(){
var td = this;
setTimeout(function() {
var new_text = $(td).find(text).html();
popup_text.html(new_text);
popup.fadeIn('fast').delay(1000).fadeOut('slow');
}, timeout);
timeout += 1000 + 1000;
});
Run Code Online (Sandbox Code Playgroud)
我从表格单元格中获取文本,并在图层中显示延迟.1个问题:如何让这段代码在无限循环中运行?2问题:当你将鼠标悬停在popop周期暂时停止然后继续时如何做到这一点?非常感谢!