home *** CD-ROM | disk | FTP | other *** search
/ What the Doctor Required - The Freshest December / December.iso / windows / mem1577.pe / mycomp.htt < prev    next >
Encoding:
Text File  |  1997-08-28  |  5.0 KB  |  123 lines

  1. <!-- 
  2.  * This file was automatically generated by Microsoft Internet Explorer 4.0 
  3.  * using the file res://webvw.dll/mycomp.htt 
  4.  -->
  5.  
  6. <html>
  7.    <head>
  8.       <script language="JavaScript" for="FileList" event="SelectionChanged">
  9.          var items            = FileList.FocusedItem;
  10.          var fldr             = FileList.Folder;
  11.          var L_TotalSize_Text = "Capacity: ";
  12.          var L_FreeSpace_Text = "Free: ";
  13.          var L_UsedSpace_Text = "Used";
  14.          var data;
  15.          var text;
  16.          var name;
  17.          var freeSpace;
  18.          var totalSize;
  19.  
  20.          // name
  21.          name = fldr.GetDetailsOf(items, 0);
  22.          text = "<b>" + name + "</b><br>";
  23.  
  24.          // type
  25.          text += fldr.GetDetailsOf(items, 1);
  26.  
  27.          // total size
  28.          totalSize = fldr.GetDetailsOf(items, 2);
  29.          if (totalSize != "") {
  30.             text += "<br><br><br>" + L_TotalSize_Text + totalSize;
  31.  
  32.             // free space
  33.             freeSpace = fldr.GetDetailsOf(items, 3);
  34.  
  35.             text += "<br><br><table bgcolor=buttonhighlight width=12 height=12 border=1 bordercolordark=black bordercolorlight=black align=left><td></td></table> " + L_FreeSpace_Text + freeSpace;
  36.             text += "<br><br><table bgcolor=buttonface width=12 height=12 border=1 bordercolordark=black bordercolorlight=black align=left><td></td></table> " + L_UsedSpace_Text;
  37.  
  38.             PieChart.displayFreeJS(freeSpace, totalSize);
  39.             PieChart.style.display = "";
  40.          } else {
  41.             PieChart.style.display = "none";
  42.  
  43.             // tip
  44.             data = fldr.GetDetailsOf(items, -1);
  45.             if (data != "" && data != name)
  46.                text += "<br><br>" + data;
  47.          }
  48.  
  49.          SPAN1.innerHTML = text;
  50.       </script>
  51.  
  52.       <script>
  53.          function fixSize() {
  54.             var hideTop = 200
  55.             var hideLeft = 400
  56.             var ch = document.body.clientHeight
  57.             var cw = document.body.clientWidth
  58.             if (hideTop > ch || hideLeft > cw) {
  59.                document.all.heading.visibility = "hidden"
  60.                document.all.FileList.style.pixelTop = 0
  61.                document.all.panel.style.pixelTop = 0
  62.             } else {
  63.                document.all.heading.visibility = "visible"
  64.                document.all.FileList.style.top = (document.all.heading.offsetHeight - 32) + "px"
  65.                document.all.panel.style.top = (document.all.heading.offsetHeight) + "px"
  66.                document.all.rule.style.width = (cw - 84) + "px"        
  67.             }
  68.             if (hideLeft > cw) {
  69.                document.all.panel.visibility = "hidden"
  70.                document.all.FileList.style.pixelLeft = 0
  71.             } else {
  72.                document.all.panel.visibility = "visible"
  73.                document.all.FileList.style.pixelLeft = document.all.panel.style.pixelWidth
  74.             }
  75.             document.all.FileList.style.pixelWidth = cw - document.all.FileList.style.pixelLeft
  76.             document.all.FileList.style.pixelHeight = ch - document.all.FileList.style.pixelTop
  77.             document.all.panel.style.pixelHeight = ch - document.all.panel.style.pixelTop
  78.          }
  79.       </script>
  80.    </head>
  81.  
  82.    <body topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0 scroll=no onload="fixSize()">
  83.       <div ID="heading" style="position: absolute; width: 100%; height: 88px; background: URL(res://webvw.dll/mycomp.gif) no-repeat">
  84.          <p style="margin-left: 80px; padding-left: 20px; margin-top: 16px">
  85.          <table>
  86.             <tr>
  87.                <td nowrap>
  88.                   <font style="font: 16pt/16pt verdana; font-weight: bold; color: #0099FF">
  89.                      <!--webbot bot="HTMLMarkup" startspan alt="<B><I>Web View Folder Title</I></B> " -->
  90.                      %THISDIRNAME%
  91.                      <!--webbot bot="HTMLMarkup" endspan -->
  92.                   </font>
  93.                </td>
  94.             </tr>
  95.          </table>
  96.          <hr ID="rule" style="position: absolute; top: 44px; left: 84px" size=1px color=black>
  97.       </div>
  98.  
  99.       <div ID="panel" style="position: absolute; top: 88px; width: 30%; background: window; overflow: auto">
  100.          <p style="margin-left: 20px; margin-top: 8px; margin-right: 8px">
  101.          <font style="font: 8pt/10pt verdana; font-weight: normal; color: text">
  102.             <span id="SPAN1">
  103.                Select an icon to view its description.
  104.             </span>
  105.             <center>
  106.                <object id="PieChart" width=100px height=80px style="display: none"
  107.                   classid="clsid:24A928F3-E34C-11D0-A048-00A0C9034800">
  108.                </object>
  109.             </center>
  110.          </font>
  111.       </div>
  112.  
  113.       <object id="FileList" border=0 tabindex=1
  114.          classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2"
  115.          style="position: absolute; left: 30%; top: 88px; width: 70%; height: 100%">
  116.       </object>
  117.  
  118.       <script language="JavaScript">
  119.          window.onresize = fixSize;
  120.       </script>
  121.    </body>
  122. </html>
  123.