function showUploadDialog()
{
var theDes = "dialogWidth:400px;dialogHeight:130px;help:no;status:no;scroll:no";
var result =window.showModalDialog("../Other/UploadPhoto.aspx?x="+ Math.random(), '', theDes);
if (result=='' || result==undefined)
{
}
else
{
setReturnValue(result);
};
return false;
}
{
var theDes = "dialogWidth:400px;dialogHeight:130px;help:no;status:no;scroll:no";
var result =window.showModalDialog("../Other/UploadPhoto.aspx?x="+ Math.random(), '', theDes);
if (result=='' || result==undefined)
{
}
else
{
setReturnValue(result);
};
return false;
}

本文介绍了一个使用JavaScript和showModalDialog方法创建上传对话框的函数,包括参数设置、返回值处理。
187

被折叠的 条评论
为什么被折叠?



