Steven 的个人资料Windows Desktop Search -...日志列表 工具 帮助
6月12日

Listing 1: Debug.htm

To 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 + '&nbsp;</td>');

           document.write('<td class="debug-cell">' + value + '&nbsp;</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 + '&nbsp;</td>');

           document.write('<td class="debug-cell">' + value + '&nbsp;</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)

请稍候...
很抱歉,您输入的评论太长。请缩短您的评论。
您没有输入任何内容,请重试。
很抱歉,我们当前无法添加您的评论。请稍后重试。
若要添加评论,需要您的家长授予您相应权限。请求权限
您的家长禁用了评论功能。
很抱歉,我们当前无法删除您的评论。请稍后重试。
您已超过了一天之内允许提供的评论数上限。请在 24 小时后重试。
因为我们的系统表明您可能在向其他用户提供垃圾评论,您的帐户已禁用了评论功能。如果您认为我们错误地禁用了您的帐户,请联系 Windows Live 支持部门
完成下面的安全检查,您提供评论的过程才能完成。
您在安全检查中键入的字符必须与图片或音频中的字符一致。

若要添加评论,请使用您的 Windows Live ID 登录(如果您使用过 Hotmail、Messenger 或 Xbox LIVE,您就拥有 Windows Live ID)。登录


还没有 Windows Live ID 吗?请注册

12 月 1 日
12 月 1 日

引用通告

此日志的引用通告 URL 是:
http://wdstech.spaces.live.com/blog/cns!43D934DB9525CC66!138.trak
引用此项的网络日志