📄 adsk_ptw_image_and_idrop.js
字号:
/*
Copyright 1988-2000 by Autodesk, Inc.
Permission to use, copy, modify, and distribute this software
for any purpose and without fee is hereby granted, provided
that the above copyright notice appears in all copies and
that both that copyright notice and the limited warranty and
restricted rights notice below appear in all supporting
documentation.
AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC.
DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
UNINTERRUPTED OR ERROR FREE.
Use, duplication, or disclosure by the U.S. Government is subject to
restrictions set forth in FAR 52.227-19 (Commercial Computer
Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
(Rights in Technical Data and Computer Software), as applicable.
Autodesk Publish to Web JavaScript
Template element id: adsk_ptw_image_description
Publishing content: description
Template element id: adsk_ptw_image
Publishing content: image
Template element id: adsk_ptw_idrop
Publishing content: idrop
Template element id: adsk_ptw_summary_frame
Publishing content: drawing summary
*/
adsk_ptw_image_and_idrop_main();
function adsk_ptw_image_and_idrop_main() {
var i=0;
var xmle=adsk_ptw_xml.getElementsByTagName("publish_to_web").item(0);
xmle=xmle.getElementsByTagName("contents").item(0);
var xmles=xmle.getElementsByTagName("content");
dwg_img_desc=parent.adsk_ptw_image_frame.document.getElementById("adsk_ptw_image_description");
desc = xmles.item(i).getElementsByTagName("description").item(0);
p = document.createElement("p");
if (null == desc.firstChild) {
p.appendChild(document.createTextNode(""));
}
else {
p.appendChild(document.createTextNode(desc.firstChild.text));
}
dwg_img_desc.appendChild(p);
dwg_img=document.getElementById("adsk_ptw_image");
var URL=document.location.href;
var fileName=xmles.item(i).getElementsByTagName("image").item(0).firstChild.text;
if (adsk_ptw_image_and_idrop_is_image_dwf(fileName)) {
activex = document.createElement("object");
activex.id="AdView";
dwg_img.appendChild(activex);
activex.classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF";
var temp_url = URL;牋
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -