Detaily embedded codes:
1- Embedded PDF files
2- Embedded Google Doc API
3- Embedded <iframe> and <object> tags
4- Embedded DWF files
5- <Frameset> HTML pages
6- Autodesk WS
.AWS files
7- TIF Viewer for .tif
/.tiff files
7- SolidWorks
eDrawings .eDRW files
8- Siemens .JTS
files
1-
Embedded PDF files:
PDF files are
embedded in <iframe> tag:
< iframe src="//drwgs.com/fa/a_floor-deck-drain_111.132b.pdf#view=FitH&toolbar=0"> < /iframe>
2- Embedded Google Doc API:
Microsoft Doc, Docx, Xls, Xlsx, Ppt, Pptx, and Autocad Dxf can be embedded in an <iframe> tag with Google Doc API link address: < iframe src="http://docs.google.com/gview?url=http://drwgs.com/test/1.doc&embedded=true"
style="width:100%; height:660px;" frameborder="0">
< /iframe>
< iframe src="http://docs.google.com/gview?url=http://drwgs.com/test/1.ppt&embedded=true"
style="width:100%; height:660px;" frameborder="0">
< /iframe>
< iframe src="http://docs.google.com/gview?url=http://drwgs.com/test/1.xls&embedded=true"
style="width:100%; height:660px;" frameborder="0">
< /iframe>
< iframe src="http://docs.google.com/gview?url=http://drwgs.com/test/1.pdf&embedded=true"
style="width:100%; height:660px;" frameborder="0">
< /iframe>
< iframe src="http://docs.google.com/gview?url=http://drwgs.com/test/1.tif&embedded=true"
style="width:100%; height:660px;" frameborder="0">
< /iframe>
3- Embedded <iframe> and <object> tags: <iframe> and <object> tags are used for PDF, JPG, and TXT formats: < iframe src="//drwgs.com/fa/a_floor-deck-drain_111.132b.pdf#view=FitH&toolbar=0">
< /iframe>
< object class="responsive" type="image/jpeg" data="IMG/drwgs-gnsht.jpg">
< /object>
< object class="contain" type="text/plain" data="//drwgs.com/fa/a_clg-acoustic-note_111122d.txt"
style="width:100%; height:660px;" frameborder="0">
< /object>
4- Embedded DWF files: Embedded scripts for AutoCAD DWF
files, not supported by browsers updated after 2013: function dwfload(w,h,filename)
{
var obj = document.createElement('object');
obj.setAttribute('codebase', 'http://www.autodesk.com/global/dwfviewer/installer/DwfViewerSetup.cab');
obj.setAttribute('classid', 'clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF');
obj.setAttribute('width', w);
obj.setAttribute('height', h);
var parm = document.createElement('param');
parm.setAttribute('name', 'Src');
parm.setAttribute('value', filename);
obj.appendChild(parm);
var embd = document.createElement('embed');
embd.setAttribute('width', w);
embd.setAttribute('height', h);
embd.setAttribute('src', filename);
var obj = document.getElementsByTagName('SPAN')[0];
obj.appendChild(embd);
document.getElementById('dfile').appendChild(obj);
}
5- <Frameset> HTML pages: <Frameset> no longer supported after HTML4: < frameset cols="200,*" onLoad='initializeTree()' framespacing="0" border="0" frameborder="0">
< frame src="LW.htm" name="treeFrame" target="Main" scrolling="auto">
< frameset cols="*,38%">
< frameset rows="26%,*,10%">
< frame name="Top Wing" src="TW.htm" target="_self" marginwidth="12" marginheight="0" scrolling="no">
< frame SRC="CW.htm" name="folderFrame" scrolling="no" marginwidth="12" marginheight="0">
< frame name="Bottom Wing" src="BW.htm" target="_self" marginwidth="12" marginheight="0" scrolling="no">
< /frameset>
< frame name="Right Wing" src="RW.htm" marginwidth="0" marginheight="0" scrolling="auto">
< /frameset>
< /frameset>
Note: The extra space between "<" and html tags need to be
removed in these above code snippets.
***Drawings, text and
other formatted materials on this site are provided "AS IS" for
viewing ONLY! Detaily will not warrant the use of these
drawings for any means of detailing, specification, description,
reference, construction, or any other related use beside viewing.
Detaily does not guarantee the accuracy of any drawings or their
purpose of use. Detaily is not liable for any malfunctioning effect
in your computer system. Published drawings & texts are properties
of Detaily. All rights reserved.
|