我的路径是这样的
default.asp部分内容如下:
<script language="javaScript" src="include/MSAlert.js"></script>
<script LANGUAGE="JavaScript">
function Check(){
// thisForm.Usb1.load();
//thisForm.usrID.value = thisForm.Usb1.userName;
// thisForm.PassWd.value = thisForm.Usb1.passWord;
if (thisForm.usrID.value == ""){
MWalert(3,"请输入您的用户帐号");
thisForm.usrID.focus();
return false;
}
return true;
}
</script>
include/MSAlert.js 部分内容如下:
function MWalert(intType,strMessage){
var strTemp;
var strVersion;
var varReturn;
strVersion = navigator.appVersion;
strTemp = "/MsDialog/alertwindow.asp?intType=" + intType +"&strMessage="+strMessage + "&Rnd=" + Math.random();
if(strVersion.indexOf("MSIE 5")!=0 && strVersion.indexOf("MSIE 5")!=-1)
varReturn = top.window.showModalDialog(strTemp,"Dialog Arguments Value","dialogHeight: 200px; dialogWidth: 300px; center: Yes; help: No; resizable: No; status: no;");
else{
varReturn = top.window.showModalDialog(strTemp,"Dialog Arguments Value","dialogHeight: 200px; dialogWidth: 300px; center: Yes; help: No; resizable: no; status: no;");
}
return varReturn;
}
default.asp在根目录,下有include , msdialog等子目录,这样不对吗、
default.asp部分内容如下:
<script language="javaScript" src="include/MSAlert.js"></script>
<script LANGUAGE="JavaScript">
function Check(){
// thisForm.Usb1.load();
//thisForm.usrID.value = thisForm.Usb1.userName;
// thisForm.PassWd.value = thisForm.Usb1.passWord;
if (thisForm.usrID.value == ""){
MWalert(3,"请输入您的用户帐号");
thisForm.usrID.focus();
return false;
}
return true;
}
</script>
include/MSAlert.js 部分内容如下:
function MWalert(intType,strMessage){
var strTemp;
var strVersion;
var varReturn;
strVersion = navigator.appVersion;
strTemp = "/MsDialog/alertwindow.asp?intType=" + intType +"&strMessage="+strMessage + "&Rnd=" + Math.random();
if(strVersion.indexOf("MSIE 5")!=0 && strVersion.indexOf("MSIE 5")!=-1)
varReturn = top.window.showModalDialog(strTemp,"Dialog Arguments Value","dialogHeight: 200px; dialogWidth: 300px; center: Yes; help: No; resizable: No; status: no;");
else{
varReturn = top.window.showModalDialog(strTemp,"Dialog Arguments Value","dialogHeight: 200px; dialogWidth: 300px; center: Yes; help: No; resizable: no; status: no;");
}
return varReturn;
}
default.asp在根目录,下有include , msdialog等子目录,这样不对吗、
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货