www.gusucode.com > 休闲农庄网站php网站源码程序 > code/tools/admin/js/yd.js
//移动短信留言板发布表单提交 $(document).ready(function(){ $('#ydForm').submit(function(){ $('#ydForm').ajaxSubmit({ target: 'div#notice', url: 'post.php', success: function(msg) { if(msg=="OK"){ $('div#notice').hide(); $().alertwindow("移动短信留言板添加成功","yd.php"); }else{ $('div#notice').hide(); $().alertwindow(msg,""); } } }); return false; }); }); //弹出对话框 function Dpop(url,w,h){ res = showModalDialog(url, null, 'dialogWidth: '+w+'px; dialogHeight: '+h+'px; center: yes; resizable: no; scroll: no; status: no;'); if(res=="ok"){window.location.reload();} }