日期:2014-05-17 浏览次数:20522 次
1function tb_remove() {
2 var seq=PopSeq();
3 $("#TB_imageOff"+seq).unbind("click");
4 $("#TB_closeWindowButton" + seq).unbind("click");
5
6 $("#TB_window" + seq).fadeOut("fast", function() {
7 /**////手动移除ifrmae,IE的一个bug
8 $('#TB_iframeContent' + seq).remove();
9 $('#TB_window' + seq + ',#TB_overlay' + seq + ',#TB_HideSelect' + seq).trigger("unload").unbind().remove();
10 /**////自己调用垃圾回收,强制清楚iframe内存,解决文本框无法输入问题。
11 CollectGarbage();
12 });
13 if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
14 $("body","html").css({height: "auto", width: "auto"});
15 $("html").css("overflow","");
16 }
17 document.onkeydown = "";
18 document.onkeyup = "";
19 return false;
20}
jQuery(document).ready(function() {
setTimeout(function(){
$('#YourElementID').focus();
},200);
});
------解决方案--------------------