JavaScript对话框 jsdialog

20120301085946697.png

function ShowCallBack(opt) {
opt.obj.close();
}

function ShowAlert()
{
var pop=new txooo.ui.Popup({ contentType:4,isReloadOnClose:false,width:340,height:100});
pop.setContent("title","alert警告框示例");
pop.setContent("alertCon", "alert对话框内容");

pop.setContent("callBack", ShowCallBack);
pop.setContent("parameter", { id: "divCall", str: "点击确定后显示的字符串", obj: pop });

pop.build();
pop.show();
}