思路不錯(cuò),大家可以測(cè)試下,在vbscript調(diào)用另外一個(gè)vbscript
第一個(gè)頁(yè)面:
<html>
<head>
<script language="VBScript">
Sub Hello()
Document.All.myScriptlet.Hello
End Sub
</script>
</head>
<body onload="Hello()">
<OBJECT ID="myScriptlet"
TYPE="text/x-scriptlet"
DATA="2.htm"
HEIGHT="0" WIDTH="0">
</OBJECT>
</body>
</html>
2.htm里的源碼:
<script language="VBScript">
Sub public_Hello()
MsgBox "Hello World!"
End Sub
</script>