模式对话框js代码

function showModal(id,width,height) { window.showModalDialog('http://www.idyan.com','window',"dialogLeft:"+(screen.availWidth-width)/2+";dialogTop:"+(screen.availHeight-height)/2+";dialogHeight: "+height+"px; dialogWidth: "+width+"px;center: yes; help: no;resizable: no; status: no;"); }

你可能感兴趣的:(对话框)