UpdatePanel 与Jquery.Thickbox 失效解决办法

把thickbox.js文件中的

代码
//on page load call tb_init
$(document).ready(function(){   
    tb_init(
'a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox
    imgLoader = new Image();// preload image
    imgLoader.src = tb_pathToImage;
});

 

替换成

代码
function pageLoad(sender, args) {
    tb_init(
'a.thickbox, area.thickbox, input.thickbox'); //pass where to apply thickbox
    imgLoader = new Image(); // preload image
    imgLoader.src = tb_pathToImage;
 
//可以在这写自己的JQ
}

 

 

posted on 2010-10-08 13:08  在路上晃晃悠悠  阅读(410)  评论(0编辑  收藏  举报

导航