加载控件
引用插件对象
iWebPDF2018是一款专门针对PDF文档操作管理的综合性方案产品,在集成时,提供了对于IE浏览器的引用方式,IE浏览器下以创建ActiveX对象的方式来加载插件。
调用示例
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <html> <head> <title>iWebPDF2018快速集成示例</title> </head> <SCRIPT LANGUAGE="JavaScript"> function Load() { //IE浏览器中创建iWebPDF对象 if (window.ActiveXObject||"ActiveXObject" in window) { document.getElementById("plugin").innerHTML = "<object classid=´clsid:7017318C-BC50-4DAF-9E4A-10AC8364C315´ id=´iWebPDF´ height=´100%´ width=´100%´></object>"; } else { var plugin = window.navigator.plugins["npistylepdf plugin dll"]; document.getElementById("plugin").innerHTML = "<embed id=´iWebPDF´ type=´application/npistyleax´ width=´100%´ height=´100%´/>"; } } <body onload="Load()"> <div style="width: 100%;height: 100%;"id="plugin"> </div> </body> </html>