有人可以告诉我如何激活一次功能Thickbox已关闭,我们将不胜感激。
function tb_remove() {
window.parent.pageUpdate();// << this is what i have tried
$("#TB_imageOff").unbind("click");
$("#TB_closeWindowButton").unbind("click");
$("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();});
$("#TB_load").remove();
if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
$("body","html").css({height: "auto", width: "auto"});
$("html").css("overflow","");
}
document.onkeydown = "";
document.onkeyup = "";
return false;
}
最佳答案
该函数调用应该有效 - 它适用于我的测试用例。
您使用的是 Thickbox iframe 吗?
关于jquery - 当厚盒关闭时激活功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1542479/