【发布时间】:2011-04-30 15:37:54
【问题描述】:
目前,单击会在我的代码中启动序列。我想改变它,让“重新开始”淡入,出现 5 秒钟,然后淡出,其余的序列运行。
完全的初学者!我不知道该怎么做。有什么帮助吗?
$(document).ready(runIt);
});
function runIt(){
$('#myText').hover(function(){
$(this).clearQueue().html('Start Again');
})
.click(function(){
runIt();
})
.html('text 1')
.fadeIn(1000)
.delay(5000)
.fadeOut(1000,function(){
$(this).html('text 2');
})
.fadeIn(1000)
.delay(5000)
.fadeOut(1000,function(){
$(this).html('text 3').unbind('mouseenter mouseleave');
})
.fadeIn(1000);
};
【问题讨论】: