抱歉这个菜鸟问题,我正在尝试让三个红色的气泡一个一个出现,请在此处查看我的代码:http: //jsfiddle.net/FLt9Z/
该部分的 javascript 如下所示:
function leftappear() {
$('#redbubble-left').show();
}
function topappear() {
$('#redbubble-top').show();
}
function rightappear() {
$('#redbubble-right').show();
}
var animation_script = [
{
at_time: 30 * 1000, // 30 seconds
animation: leftappear()
},
{
at_time: 31 * 1000, // 31 seconds
animation: topappear()
},
{
at_time: 32 * 1000, // 32 seconds
animation: rightappear()
}
];
var current_time = 0;
function animate_next() {
var next = animation_script.shift(),
time_between = next.at_time - current_time;
setTimeout(function () {
current_time = next.at_time;
next.animation();
animate_next();
}, time_between);
}
非常感谢你们!