我正在尝试在页面加载时显示多个花式对话框。我可以让一个工作,但我如何让javascript循环停止并且在用户关闭第一个fancybox之前不打开另一个对话框?现在,我只看到第二个对话框。我不知道一开始我可能需要加载多少条花式框消息。谢谢!
这是javascript代码。(更新)
$(document).ready(
if("0x000000000112009b"!=""){
tbRowId="0x000000000112009b".split(",");
width="300".split(",");
height="300".split(",");
$.fancybox({
"autoDimensions":"false",
"width":width[0],
"height":height[0],
"transitionIn":"none",
"transitionOut":"none",
"modal":false,
"hideOnOverlayClick":false,
"hideOnContentClick":false,
"enableEscapeButton":false,
"overlayShow":true,
"showCloseButton":true,
"href":"announce_popup.html?sid=AppjfrfijfdfHvXC&tbRowId="+tbRowId[0],
"onClosed":function(){
alert("start");
$.fancybox({
"autoDimensions":"false",
"width":width[1],
"height":height[1],
"transitionIn":"none",
"transitionOut":"none",
"modal":false,
"hideOnOverlayClick":false,
"hideOnContentClick":false,
"enableEscapeButton":false,
"overlayShow":true,
"showCloseButton":true,
"href":"announce_popup.html?sid=AppjfrfijfdfHvXC&tbRowId="+tbRowId[1]
});
alert("end.");
}
});
}
});