继承人什么我走到这一步:我需要内外部调用从一个VBScript函数的JavaScript文件::功能
此功能是不能直接在HTML页面,它在外部JS文件,“主。 JS'。
function createVBScript(){
var script=document.createElement('script');
script.type='text/vbscript';
script.src='vb/fldt.vbs';
document.getElementsByTagName('head')[0].appendChild(script);
}
VBS文件包含:
<!-- // Visual basic helper required to detect Flash Player ActiveX control version information
Function VBGetSwfVer()
MsgBox "Hello there"
End Function
// -->
多数民众赞成我想暂时做。 如何从main.js调用VBGetSwfVer()?