AC53EFE4-94A7-47E6-BBFC-E9B9CF322299javascript
js代碼html
<script type="text/javascript"> // DWGVIEWX.DwgViewXCtrl.1 var NewObj; try { // NewObj = new ActiveXObject("TVANTSX.TvantsXCtrl.1"); NewObj = new ActiveXObject("DWGVIEWX.DwgViewXCtrl.1"); if (typeof NewObj != 'undefined') { //NewObj = null; document.getElementById("Message").style.display="none"; //return true; } } catch (e) { document.getElementById("DWGViewX").style.display="none"; // document.getElementById("Message").style.display=""; alert("Dwg插件沒有安裝,或者禁用!,請安裝插件!"); } debugger; </script>
內嵌插件預覽文件 java
<OBJECT id="DWGViewX" style="display" classid="clsid:AC53EFE4-94A7-47E6-BBFC-E9B9CF322299" codebase="/draw/download/dwgviewx.cab" width="1200" height="750"> <param name="_Version" value="65536"> <param name="_ExtentX" value="18521"> <param name="_ExtentY" value="13758"> <param name="_StockProps" value="0"> <!-- http://127.0.0.1:8096/draw/upload/201610/20161012104324045_829.dwg 此處必須用文件的靜態路徑,流路徑測試失敗! --> <param name="DrawingFile" value="${fileUrl}"> <param name="ShowToobar" value="-1"> <param name="ShowLayoutBar" value="1"> </OBJECT> </body>