那要和你打开对话筐所带的参数而决定了
然后在页面中使用:
var arg=self.dialogArguments;
然后判断 arg 是否为空就知道了function showDialog1()
{
var w=700,h=500;
theURL="index.asp?action=test";
theDes="status:no;center:yes;help:no;minimize:yes;maximize:no;dialogWidth:"+w+"px;scroll:no;dialogHeight:"+h+"px;border:think";
var rv=self.showModelessDialog(theURL,window,theDes);
}function showDialog2(to)
{
var w=350,h=280;
if(to==null)
theURL="send.asp?to="+oContextmenu.nowSelect;
else
theURL="send.asp?to="+to;
theDes="status:no;center:yes;help:no;minimize:no;maximize:no;dialogWidth:"+w+"px;scroll:no;dialogHeight:"+h+"px;border:think";
var rv=self.showModalDialog(theURL,null,theDes);
}
然后在页面中使用:
var arg=self.dialogArguments;
然后判断 arg 是否为空就知道了function showDialog1()
{
var w=700,h=500;
theURL="index.asp?action=test";
theDes="status:no;center:yes;help:no;minimize:yes;maximize:no;dialogWidth:"+w+"px;scroll:no;dialogHeight:"+h+"px;border:think";
var rv=self.showModelessDialog(theURL,window,theDes);
}function showDialog2(to)
{
var w=350,h=280;
if(to==null)
theURL="send.asp?to="+oContextmenu.nowSelect;
else
theURL="send.asp?to="+to;
theDes="status:no;center:yes;help:no;minimize:no;maximize:no;dialogWidth:"+w+"px;scroll:no;dialogHeight:"+h+"px;border:think";
var rv=self.showModalDialog(theURL,null,theDes);
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货