gusucode.com > 通讯设备公司网站程序源码 > 通讯设备公司网站程序源码/tools/admin/js/wyla.js

    

//51la统计代码发布表单提交
$(document).ready(function(){
	
	$('#wylaForm').submit(function(){

		$('#wylaForm').ajaxSubmit({
			target: 'div#notice',
			url: 'post.php',
			success: function(msg) {
				if(msg=="OK"){
					$('div#notice').hide();
					$().alertwindow("51la统计代码添加成功","wyla.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();}
 
}