| Steven 的个人资料Windows Desktop Search -...日志列表 | 帮助 |
|
6月12日 Listing 1: Debug.htmTo create the Debug.htm file copy everything below the “—copy—“ line into an empty Notepad.exe document. Then save the document AS UTF-8 to “c:\Debug.htm”. The saved file MUST be UTF-8 encoded. Use Notepads Save As feature to do this because the default for Notepad is to save as Unicode which won’t work.
—copy— <html> <head> <!-- Template: debug.htm --> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <style> .debug-group { font-family: tahoma; font-size: 12pt; border: 1px solid #7EB6F0; background-color: #2765AB; color: #FFFFFF; } .debug-row-header { font-family: tahoma; font-size: 10pt;background-color: #FFFFFF; color: green; } .debug-row-hidden { font-family: tahoma; font-size: 8pt; background-color: #EEF4FB; color: black; } .debug-row { font-family: tahoma; font-size: 8pt; background-color: #FFFFFF; color: black; } .debug-cell-header { border-bottom: 1px solid #7EB6F0; } .debug-cell { border-bottom: 1px solid #7EB6F0; } </style> <script>
function AddHiddenRow( prop, title, value ) { document.write('<tr class="debug-row-hidden">'); document.write('<td class="debug-cell">' + prop + '</td>'); document.write('<td class="debug-cell">' + title + ' </td>'); document.write('<td class="debug-cell">' + value + ' </td>'); document.write('</tr>'); }
function AddRow( prop, title, value ) { document.write('<tr class="debug-row">'); document.write('<td class="debug-cell">' + prop + '</td>'); document.write('<td class="debug-cell">' + title + ' </td>'); document.write('<td class="debug-cell">' + value + ' </td>'); document.write('</tr>'); }
</script> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <!-- First we'll dump out the available properties --> <br> <div align="center" style="width: 100%; padding: 0px 15px 0px 15px;"> <div class="debug-group" align="left" style="width: 100%; height=100%;"> <div style="padding: 5px 5px 5px 5px;">Item properties</div> <div style="overflow: auto; width: 100%;"> <table border="0" width="100%" cellspacing="0" cellpadding="5"> <tr class="debug-row-header"> <td class="debug-cell-header" width="100">Property</td> <td class="debug-cell-header" width="100">Title</td> <td class="debug-cell-header">Value</td> </tr> <script> <%if:DocFormat%> AddHiddenRow('DocFormat', '<%title:DocFormat%>', '<%value:DocFormat%>'); <%endif%> <%if:Url%> AddHiddenRow('Url', '<%title:Url%>', '<%value:Url%>'); <%endif%> <%if:HasAttach%> AddHiddenRow('HasAttach', '<%title:HasAttach%>', '<%value:HasAttach%>'); <%endif%> <%if:PerceivedType%> AddHiddenRow('PerceivedType', '<%title:PerceivedType%>', '<%value:PerceivedType%>'); <%endif%> <%if:IsDeleted%> AddHiddenRow('IsDeleted', '<%title:IsDeleted%>', '<%value:IsDeleted%>'); <%endif%> <%if:WorkID%> AddHiddenRow('WorkID', '<%title:WorkID%>', '<%value:WorkID%>'); <%endif%> <%if:IsAttachment%> AddHiddenRow('IsAttachment', '<%title:IsAttachment%>', '<%value:IsAttachment%>'); <%endif%> <%if:ConversationID%> AddHiddenRow('ConversationID', '<%title:ConversationID%>', '<%value:ConversationID%>'); <%endif%> <%if:FileExt%> AddHiddenRow('FileExt', '<%title:FileExt%>', '<%value:FileExt%>'); <%endif%> <%if:Rank%> AddRow('Rank', '<%title:Rank%>', '<%value:Rank%>'); <%endif%> <%if:DocTitlePrefix%> AddRow('DocTitlePrefix', '<%title:DocTitlePrefix%>', '<%value:DocTitlePrefix%>'); <%endif%> <%if:DocTitle%> AddRow('DocTitle', '<%title:DocTitle%>', '<%value:DocTitle%>'); <%endif%> <%if:DocAuthor%> AddRow('DocAuthor', '<%title:DocAuthor%>', '<%value:DocAuthor%>'); <%endif%> <%if:PrimaryDate%> AddRow('PrimaryDate', '<%title:PrimaryDate%>', '<%value:PrimaryDate%>'); <%endif%> <%if:Size%> AddRow('Size', '<%title:Size%>', '<%value:Size%>'); <%endif%> <%if:FileExtDesc%> AddRow('FileExtDesc', '<%title:FileExtDesc%>', '<%value:FileExtDesc%>'); <%endif%> <%if:DisplayFolder%> AddRow('DisplayFolder', '<%title:DisplayFolder%>', '<%value:DisplayFolder%>'); <%endif%> <%if:FlagText%> AddRow('FlagText', '<%title:FlagText%>', '<%value:FlagText%>'); <%endif%> <%if:IsFlagged%> AddRow('IsFlagged', '<%title:IsFlagged%>', '<%value:IsFlagged%>'); <%endif%> <%if:Create%> AddRow('Create', '<%title:Create%>', '<%value:Create%>'); <%endif%> <%if:DueDate%> AddRow('DueDate', '<%title:DueDate%>', '<%value:DueDate%>'); <%endif%> <%if:Importance%> AddRow('Importance', '<%title:Importance%>', '<%value:Importance%>'); <%endif%> <%if:ToName%> AddRow('ToName', '<%title:ToName%>', '<%value:ToName%>'); <%endif%> <%if:CcName%> AddRow('CcName', '<%title:CcName%>', '<%value:CcName%>'); <%endif%> <%if:AttachmentNames%> AddRow('AttachmentNames', '<%title:AttachmentNames%>', '<%value:AttachmentNames%>'); <%endif%> <%if:DocCompany%> AddRow('DocCompany', '<%title:DocCompany%>', '<%value:DocCompany%>'); <%endif%> <%if:Location%> AddRow('Location', '<%title:Location%>', '<%value:Location%>'); <%endif%> <%if:DocCategory%> AddRow('DocCategory', '<%title:DocCategory%>', '<%value:DocCategory%>'); <%endif%> <%if:DocKeywords%> AddRow('DocKeywords', '<%title:DocKeywords%>', '<%value:DocKeywords%>'); <%endif%> <%if:MusicAlbum%> AddRow('MusicAlbum', '<%title:MusicAlbum%>', '<%value:MusicAlbum%>'); <%endif%> <%if:FileName%> AddRow('FileName', '<%title:FileName%>', '<%value:FileName%>'); <%endif%> <%if:MusicGenre%> AddRow('MusicGenre', '<%title:MusicGenre%>', '<%value:MusicGenre%>'); <%endif%> </script> </table> </div> </div> </div>
<!-- Next we'll embed any characterization data --> <br> <div align="center" style="width: 100%; padding: 0px 15px 0px 15px;"> <div class="debug-group" align="left" style="width: 100%; height=100%;"> <div style="padding: 5px 5px 5px 5px;">Characterization</div> <iframe height="200" width="100%" src="<%url:characterization%>"> </iframe> </div> </div>
<!-- Finally we'll show the items image if it has one --> <br> <div align="center" style="width: 100%; padding: 0px 15px 0px 15px;"> <div class="debug-group" align="left" style="width: 100%; height=100%;"> <div style="padding: 5px 5px 5px 5px;">Image</div> <table border="0" width="100%" cellspacing="0" cellpadding="5"> <tr class="debug-row-header"> <td><img src="<%url:url%>"></img></td> </tr> </table> </div> </div> </body> </html> 评论 (2)
引用通告此日志的引用通告 URL 是: http://wdstech.spaces.live.com/blog/cns!43D934DB9525CC66!138.trak 引用此项的网络日志
|
|
|