jqmodal应用实例

var ajaxText = ‘<div class=”dialog_content”><p class=”loading”>正为您在处理数据, 请稍候…</p></div><p class=”close”><a href=”#” title=”” class=”jqmClose”>关闭</a></p>’;
dialogbg=function(){
if(getBrowser() == ‘msie’){
$(‘.dialog_sharp’).height($(‘.dialog_main’).height());
};

}

var myjqmOnShow = function(hash){
hash.w.show();
dialogbg();
};

var myjqmOnLoad = function(hash){
dialogbg();
};

function closedialog(){
$(‘#dialog_clt’).jqmHide();
}

function mgno(id){
var url = ‘/a/c.php?mm=task&cc=rel&t=11&id=’+encodeURIComponent(id);
$(‘#dialog_clt’).jqm({
ajax:url,
modal:true,
toTop:true,
target: ‘div.dialog_main’,
ajaxText: ajaxText,
onShow:myjqmOnShow,
onLoad:myjqmOnLoad
}).jqDrag(‘.jqDrag’).jqmShow();
}

function mgyes(id){
var url = ‘/a/c.php?mm=task&cc=rel&t=12&id=’+encodeURIComponent(id);
$(‘#dialog_clt’).jqm({
ajax:url,
modal:true,
toTop:true,
target: ‘div.dialog_main’,
ajaxText: ajaxText,
onShow:myjqmOnShow,
onLoad:myjqmOnLoad
}).jqDrag(‘.jqDrag’).jqmShow();
}

</script>



发表评论

您的电子邮箱地址不会被公开。

+ 72 = 79