我有这段代码:
$("#au").click(function(){
$("#sca").delay(18625).effect("bounce","highlight",2000);
$("#scb").delay(26520).effect("bounce","highlight",2000);
$("#scc").delay(30884).effect("bounce","highlight",2000);
$("#scd").delay(34901).effect("bounce","highlight",2000);
$("#sce").delay(39000).effect("bounce","highlight",2000);
$("#scf").delay(44000).effect("bounce","highlight",2000);
$("#scg").delay(45000).effect("bounce","highlight",2000);
$("#sca").delay(51000).effect("bounce","highlight",2000);
$("#scb").delay(52000).effect("bounce","highlight",2000);
$("#scc").delay(53000).effect("bounce","highlight",2000);
$("#scd").delay(55000).effect("bounce","highlight",2000);
$("#sce").delay(56000).effect("bounce","highlight",2000);
$("#scf").delay(57300).effect("bounce","highlight",2000);
$("#scg").delay(61403).effect("bounce","highlight",2000);
$("#sca").delay(67500).effect("bounce","highlight",2000);
$("#scb").delay(68200).effect("bounce","highlight",2000);
$("#scc").delay(69200).effect("bounce","highlight",2000);
$("#scd").delay(71400).effect("bounce","highlight",2000);
$("#sce").delay(72300).effect("bounce","highlight",2000);
$("#scf").delay(73000).effect("bounce","highlight",2000);
$("#scg").delay(77500).effect("bounce","highlight",2000);
$("#au-sca").get(0).play();
});
问题是,只有bounce
在工作,而不是highlight
(这不是很遗憾,这只是一个愿望)。第二个和第三个“循环”不是在正确的时间触发,而是在一分钟左右之后触发。是否有任何已知的行之有效的方法来克服这两个障碍并同时使代码不那么突兀?