home *** CD-ROM | disk | FTP | other *** search
/ Informática Multimedia Fácil 56 / INF1297.iso / IE4ESP / IE4SHL95.CAB / folder.htt < prev    next >
Text File  |  1997-09-14  |  9KB  |  214 lines

  1. <!-- 
  2.  * This file was automatically generated by Microsoft Internet Explorer 4.0 
  3.  * using the file %THISDIRPATH%\folder.htt (if customized) or
  4.  * %TEMPLATEDIR%\folder.htt (if not customized).
  5.  -->
  6.  
  7. <html>
  8.    <!-- this style defines the appearance of any hyperlinks that get displayed -->
  9.    <style>
  10.       a:link      {font: 8pt/10pt verdana; color: #FF6633}
  11.       a:visited   {font: 8pt/10pt verdana; color: #0099FF}
  12.       a:active    {font: 8pt/10pt verdana; color: black}
  13.    </style>
  14.  
  15.    <head>
  16. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
  17.       <!-- allow references to any resources you might add to the folder -->
  18.       <!-- (a "webbot" is a special wrapper for FrontPage compatibility) -->
  19.       <!-- webbot bot="HTMLMarkup" tag="base" startspan -->
  20.       <base href="%THISDIRPATH%\">
  21.       <!-- webbot bot="HTMLMarkup" endspan -->
  22.  
  23.       <script language="JavaScript" for="FileList" event="SelectionChanged">
  24.          // this script updates the left info panel when you select icons
  25.          var items = FileList.FocusedItem;
  26.          var fldr  = FileList.Folder;
  27.          var data;
  28.          var text;
  29.  
  30.          // cancel any pending status message
  31.          if (window.timer) {
  32.             window.clearTimeout(window.timer);
  33.             window.timer = 0;
  34.          }
  35.  
  36.          // sanity check
  37.          if (!items || !fldr)
  38.             return;
  39.  
  40.          // name
  41.          text = "<b>" + fldr.GetDetailsOf(items, 0) + "</b>";
  42.  
  43.          // type
  44.          data = fldr.GetDetailsOf(items, 2);
  45.          if (data != "")
  46.             text += "<br>" + data;
  47.  
  48.          // date
  49.          data = fldr.GetDetailsOf(items, 3);
  50.          if (data != "")
  51.             text += "<br><br>" + fldr.GetDetailsOf(null, 3) + ": " + data;
  52.  
  53.          // size
  54.          data = fldr.GetDetailsOf(items, 1);
  55.          if (data != "")
  56.             text += "<br><br>" + fldr.GetDetailsOf(null, 1) + ": " + data;
  57.  
  58.          // tip
  59.          data = fldr.GetDetailsOf(items, -1);
  60.          if (data != "" && data != name) {
  61.             var start;
  62.             var end;
  63.             var theLink;
  64.             var a;
  65.  
  66.             // parse lines for Office files without breaking links below
  67.             a = data.split("\n");
  68.             data = a.join("<br>\n");
  69.  
  70.             // look for embedded links
  71.             text += "<br><br>";
  72.             start = data.indexOf("http://");
  73.             if (start < 0)
  74.                start = data.indexOf("file://");
  75.             if (start < 0)
  76.                text += data;
  77.             else {
  78.                end = data.indexOf(" ", start);
  79.                if (end < 0)
  80.                   end = data.length;
  81.                if (start > 0)
  82.                   text += data.substring(0, start - 1);
  83.                theLink = data.substring(start, end);
  84.                text += theLink.link(theLink);
  85.                if (end < data.length)
  86.                   text += data.substring(end + 1, data.length);
  87.             }
  88.          }
  89.  
  90.          // replace SPAN1 with the new text
  91.          SPAN1.innerHTML = text;
  92.  
  93.          // erase any visible thumbnail since the selection changed
  94.          document.all.Thumbnail.style.display = "none";
  95.          document.all.Status.style.display = "none";
  96.  
  97.          // tell the control to generate the new thumbnail asynchronously
  98.          if (document.all.Thumbnail.displayFile(items.Path))
  99.             window.timer = window.setTimeout('document.all.Status.style.display = ""', 1000);
  100.       </script>
  101.  
  102.       <script language="JavaScript" for="Thumbnail" event="OnThumbnailReady">
  103.          // when a valid thumbnail has been generated, display it
  104.          window.clearTimeout(window.timer);
  105.          window.timer = 0;
  106.          document.all.Status.style.display = "none";
  107.          if (document.all.Thumbnail.haveThumbnail())
  108.             document.all.Thumbnail.style.display = "";
  109.       </script>
  110.  
  111.       <script>
  112.          // this function handles fixed panel sizing and collapsing when the window resizes
  113.          function fixSize() {
  114.             var hideTop = 200
  115.             var hideLeft = 400
  116.             var ch = document.body.clientHeight
  117.             var cw = document.body.clientWidth
  118.  
  119.             if (hideTop > ch) {
  120.                document.all.heading.visibility = "hidden"
  121.                document.all.FileList.style.pixelTop = 0
  122.                document.all.panel.style.pixelTop = 0
  123.             } else {
  124.                document.all.heading.visibility = "visible"
  125.                document.all.FileList.style.top = (document.all.heading.offsetHeight - 32) + "px"
  126.                document.all.panel.style.top = (document.all.heading.offsetHeight) + "px"
  127.                document.all.rule.style.width = (cw - 84) + "px"        
  128.             }
  129.             if (hideLeft > cw) {
  130.                document.all.panel.visibility = "hidden"
  131.                document.all.FileList.style.pixelLeft = 0
  132.                document.all.FileList.style.pixelTop = document.all.panel.style.pixelTop
  133.             } else {
  134.                document.all.panel.visibility = "visible"
  135.                document.all.FileList.style.pixelLeft = document.all.panel.style.pixelWidth 
  136.             }
  137.             document.all.FileList.style.pixelWidth = cw - document.all.FileList.style.pixelLeft
  138.             document.all.FileList.style.pixelHeight = ch - document.all.FileList.style.pixelTop
  139.             document.all.panel.style.pixelHeight = ch - document.all.panel.style.pixelTop
  140.          }
  141.       </script>
  142.    </head>
  143.  
  144.    <body topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0 scroll=no onload="fixSize()">
  145.  
  146.       <!-- start heading banner -->
  147.       <div ID="heading" style="position: absolute; width: 100%; height: 88px; background: URL(res://webvw.dll/folder.gif) no-repeat">
  148.          <p style="margin-left: 84px; padding-left: 20px; margin-top: 16px">
  149.          <!-- using a table with nowrap to prevent undesirable word wrapping -->
  150.          <table>
  151.             <tr>
  152.                <td nowrap>
  153.                   <font style="font: 16pt/16pt verdana; font-weight: bold; color: #0099FF">
  154.                      <!--webbot bot="HTMLMarkup" startspan alt="<B><I>Web View Folder Title</I></B> " -->
  155.                      %THISDIRNAME%
  156.                      <!--webbot bot="HTMLMarkup" endspan -->
  157.                   </font>
  158.                </td>
  159.             </tr>
  160.          </table>
  161.          <!-- this is more efficient than a long graphic, but we have to adjust it in FixSize() -->
  162.          <hr ID="rule" style="position: absolute; top: 44px; left: 84px" size=1px color=black>
  163.       </div>
  164.       <!-- end heading banner -->
  165.  
  166.       <!-- start left info panel -->
  167.       <div ID="panel" style="position: absolute; top: 88px; width: 30%; background: window; overflow: auto">
  168.          <p style="margin-left: 20px; margin-top: 8px; margin-right: 8px">
  169.          <font style="font: 8pt/10pt verdana; font-weight: normal; color: text">
  170.             <!-- the initial prompt in this span gets replaced by script -->
  171.             <span id="SPAN1">
  172.                Seleccione un icono para ver su descripción.
  173.             </span>
  174.             <br><br>
  175.  
  176.             <!-- HERE'S A GOOD PLACE TO ADD A FEW LINKS OF YOUR OWN -->
  177.             <!-- (examples commented out)
  178.                <a href="http://www.mylink1.com/">Custom Link 1</a>
  179.                <br>
  180.                <a href="http://www.mylink2.com/">Custom Link 2</a>
  181.                <br><br>
  182.             -->
  183.  
  184.             <!-- this is the thumbnail viewer control, sized optimally for 640x480 -->
  185.             <object id="Thumbnail"
  186.                classid="clsid:1D2B4F40-1F10-11D1-9E88-00C04FDCAB92"
  187.                style="width: 150px; height: 150px; display: none">
  188.             </object>
  189.  
  190.             <div ID="Status" style="margin-left: 20px; margin-top: 0px; margin-right: 8px; display: none">
  191.                Generando la página en miniatura...
  192.             </div>
  193.          </font>
  194.       </div>
  195.       <!-- end left info panel -->
  196.  
  197.       <!-- this is the standard file list control -->
  198.       <!-- webbot bot="HTMLMarkup" startspan u-src="file:///C:\Program Files\Microsoft FrontPage Express\Data\FoldData.gif" -->
  199.       <object id="FileList" border=0 tabindex=1
  200.          classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2"
  201.          style="position: absolute; left: 30%; top: 88px; width: 70%; height: 100%">
  202.       </object>
  203.       <!-- webbot bot="HTMLMarkup" endspan -->
  204.  
  205.       <script language="JavaScript">
  206.          // call our fixSize() function whenever the window gets resized
  207.          window.onresize = fixSize;
  208.          window.timer = 0;
  209.       </script>
  210.  
  211.    </body>
  212. </html>
  213.  
  214.