功能的html:
<script language="JavaScript" type="text/JavaScript">
var hrefurl="Business.jsp"+"?FuncUrl=Biz:\\OFFICENET\\CONTRACTCATATYPEMANFUNC.Func";
window.location.href=hrefurl;
</script>
</BODY>
</HTML>
Business.jsp:
function BeforeClose()
{
if(!X3X.TerminateQuery())
{
event.returnValue = "";
}
}
String.prototype.getQuery = function(name)
{
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
var r = this.substr(this.indexOf("\?")+1).match(reg);
if (r!=null) return unescape(r[2]); return null;
}
//alert(UrlStr.getQuery("FuncUrl"));
//document.title = X3X.DisplayName;
X3X.ServerURL = "<%= url%>"
//X3X.ShowSplash();
X3X.UpdateVersion();
X3X.Init();
//X3X.CloseSplash();
//X3X.Run("", "", "", "");
X3X.Run2(UrlStr.getQuery("FuncUrl"),LogonStr);
//document.body.on_beforeunload=BeforeClose;
//document.title = X3X.DisplayName;
</script>
</BODY>
</HTML> |