JS,showModalDialog

JS,showModalDialog /*Show Modal Diaglog (firefox 3.0 support)*/
JS,showModalDialogUtils.ShowDialog 
=   function (url, width, height, callBack)
JS,showModalDialog
{
JS,showModalDialog    
if (width == undefined)
JS,showModalDialog        width 
= 750;
JS,showModalDialog    
if (height == undefined)
JS,showModalDialog        height 
= 400;
JS,showModalDialog    
JS,showModalDialog    
if (url.indexOf("?">= 0)
JS,showModalDialog        url 
+= "&rnd=" + Math.random();
JS,showModalDialog    
else
JS,showModalDialog        url 
+= "?rnd=" + Math.random();
JS,showModalDialog    
JS,showModalDialog    
var param = String.format("dialogWidth:{0}px;dialogHeight:{1}px;scroll:no;status:no;resizable:no",
JS,showModalDialog                width, height);
JS,showModalDialog    
return window.showModalDialog(url, callBack, param);
JS,showModalDialog}

JS,showModalDialog
JS,showModalDialog
JS,showModalDialog
function  Test()  {
JS,showModalDialog        
var ret = Utils.ShowDialog("AssetEdit.aspx?id=" + id, PopWidth, PopHeight);
JS,showModalDialog        
if (ret=="undefined" || ret == null)
JS,showModalDialog            oEvent.cancel 
= true;
JS,showModalDialog    }

你可能感兴趣的:(showModalDialog)