1,如果是网页的(请参考):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0037)http://www.tom.com/x3/Business.jsp -->
<HTML><HEAD><TITLE>>X3 协同管理系统</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR></HEAD>
<BODY leftMargin=0 topMargin=0 scroll=no>
<OBJECT id=X3X codeBase=X3X.CAB#version=3,0,6,2010 height="100%" width="100%"
align=center classid=clsid:317C9AA7-315B-4D4E-B9CE-2F0A08A7749E></OBJECT>
<OBJECT id=WebBrowser height=0 width=0
classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2></OBJECT>
<SCRIPT language=javascript id=BusinessCloseEventHandler event=OnTerminate
for=X3X>
WebBrowser.ExecWB(45,1); // close window
</SCRIPT>
<SCRIPT type=text/javascript>
function BeforeClose()
{
if(!X3X.TerminateQuery())
{
event.returnValue = "";
}
}
document.title = X3X.DisplayName;
X3X.ServerURL = "http://www.tom.com:8081/"
X3X.ShowSplash();
X3X.UpdateVersion();
X3X.Init();
X3X.CloseSplash();
X3X.Run("", "", "", "");
document.body.onbeforeunload=BeforeClose;
document.title = X3X.DisplayName;
</SCRIPT>
</BODY></HTML> |