home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 5.9 / 2000-06_-_Disc_5.9_Imperfect.iso / ELINK / Msie540 / IE4SHL95.CAB / controlp.htt < prev    next >
Text File  |  1999-01-29  |  6KB  |  160 lines

  1. <!-- 
  2.  * This file was automatically generated by Microsoft Internet Explorer 4.0 
  3.  * using the file %TEMPLATEDIR%\controlp.htt
  4.  -->
  5.  
  6. <html>
  7.     <style>
  8.         body        {font: 8pt/10pt verdana; margin: 0}
  9.         #Banner        {position: absolute; width: 100%; height: 88px; background: URL(res://webvw.dll/folder.gif) no-repeat top left}
  10.         #MiniBanner    {position: absolute; width: 100%; height: 32px; background: window}
  11.         #Icon        {position: absolute; left: 11px; top: 12px; width: 64px; height: 64px}
  12.         #FileList    {position: absolute; left: 30%; top: 88px; width: 1px; height: 1px}
  13.         #Media        {margin-left: 20px; margin-top: 10px}
  14.         #Panel        {position: absolute; top: 88px; width: 30%; background: window; overflow: auto}
  15.         #PieChart    {width: 100px; height: 50px; margin-top: 10px}
  16.         #Thumbnail    {width: 160px; height: 160px; margin-top: 0px}
  17.         #Status        {margin-left: 20px}
  18.         p        {margin-left: 20px; margin-right: 8px}
  19.         p.Title        {font: 16pt/16pt verdana; font-weight: bold; color: #0099FF}
  20.         p.Warning    {font-weight: bold; color: red}
  21.         p.Links        {margin-top: 4px}
  22.         a:link        {color: #FF6633}
  23.         a:visited    {color: #0099FF}
  24.         a:active     {color: black}
  25.     </style>
  26.  
  27.     <head>
  28.         <!-- allow references to any resources you might add to the folder -->
  29.         <!-- (a "webbot" is a special wrapper for FrontPage compatibility) -->
  30.         <!-- webbot bot="HTMLMarkup" tag="base" startspan -->
  31.         <base href="%THISDIRPATH%\">
  32.         <!-- webbot bot="HTMLMarkup" endspan -->
  33.  
  34.         <script language="JavaScript">
  35.             var L_Intro_Text    = "Select an icon to view its description.";
  36.             var L_Multiple_Text    = " objects selected.";
  37.  
  38.             function FixSize() {
  39.                 // this function handles fixed panel sizing and collapsing when the window resizes
  40.                 var hideTop    = 200;
  41.                 var hideLeft    = 400;
  42.                 var miniHeight    = 32;
  43.                 var ch        = document.body.clientHeight;
  44.                 var cw        = document.body.clientWidth;
  45.  
  46.                 if (hideTop > ch) {
  47.                     document.all.Banner.style.visibility = "hidden";
  48.                     document.all.MiniBanner.style.visibility = "visible";
  49.                     document.all.FileList.style.top = miniHeight;
  50.                     document.all.Panel.style.top = miniHeight;
  51.                 } else {
  52.                     document.all.Banner.style.visibility = "visible";
  53.                     document.all.MiniBanner.style.visibility = "hidden";
  54.                     document.all.FileList.style.top = (document.all.Banner.offsetHeight - 32) + "px";
  55.                     document.all.Panel.style.top = (document.all.Banner.offsetHeight) + "px";
  56.                     document.all.Rule.style.width = (cw > 84 ? cw - 84 : 0) + "px";      
  57.                 }
  58.                 if (hideLeft > cw) {
  59.                     document.all.Panel.style.visibility = "hidden";
  60.                     document.all.FileList.style.pixelLeft = 0;
  61.                     document.all.FileList.style.pixelTop = document.all.Panel.style.pixelTop;
  62.                 } else {
  63.                     document.all.Panel.style.visibility = "visible";
  64.                     document.all.FileList.style.pixelLeft = document.all.Panel.style.pixelWidth;
  65.                 }
  66.                 document.all.FileList.style.pixelWidth = cw - document.all.FileList.style.pixelLeft;
  67.                 document.all.FileList.style.pixelHeight = ch - document.all.FileList.style.pixelTop;
  68.                 document.all.Panel.style.pixelHeight = ch - document.all.Panel.style.pixelTop;
  69.             }
  70.  
  71.             function Init() {
  72.                 // call our FixSize() function whenever the window gets resized
  73.                 window.onresize = FixSize;
  74.                 FixSize();
  75.                 Info.innerHTML = L_Intro_Text;
  76.             }
  77.         </script>
  78.  
  79.         <script language="JavaScript" for="FileList" event="SelectionChanged">
  80.             // this script updates the left info panel when you select icons
  81.             var items    = FileList.FocusedItem;
  82.             var fldr    = FileList.Folder;
  83.             var data;
  84.             var i;
  85.  
  86.             data = FileList.SelectedItems().Count;
  87.             if (data == 0) {
  88.                 // nothing selected?
  89.                 Info.innerHTML = L_Intro_Text;
  90.                 return;
  91.             }
  92.             else if (data > 1) {
  93.                 // more than one item selected?
  94.                 text = data + L_Multiple_Text + "<br>";
  95.                 if (data <= 16)
  96.                     for (i = 0; i < data; i++)
  97.                         text += "<br>" + FileList.SelectedItems().Item(i).Name;
  98.                 Info.innerHTML = text;
  99.                 return;
  100.             }
  101.  
  102.             Info.innerHTML = "<b>" + fldr.GetDetailsOf(items, 0) + "</b><br>" + fldr.GetDetailsOf(items, 1);
  103.         </script>
  104.     </head>
  105.  
  106.     <body scroll=no onload="Init()">
  107.  
  108.         <!-- start normal banner -->
  109.         <div id="Banner" style="visibility: hidden">
  110.             <!-- using a table with nowrap to prevent word wrapping -->
  111.             <table><tr><td nowrap>
  112.                 <p class=Title style="margin-left: 104px; margin-top: 16px">
  113.                 <!--webbot bot="HTMLMarkup" startspan alt="<B><I>Web View Folder Title</I></B> " -->
  114.                 %THISDIRNAME%
  115.                 <!--webbot bot="HTMLMarkup" endspan -->
  116.             </td></tr></table>
  117.             <!-- this is more efficient than a long graphic, but we have to adjust it in FixSize() -->
  118.             <hr id="Rule" size=1px color=black style="position: absolute; top: 44px; left: 84px">
  119.             <!-- this is our awesome icon extractor -->
  120.             <object id=Icon classid="clsid:e5df9d10-3b52-11d1-83e8-00a0c90dc849">
  121.                 <param name="scale" value=200>
  122.             </object>
  123.         </div>
  124.         <!-- end normal banner -->
  125.  
  126.         <!-- start mini banner -->
  127.         <div id="MiniBanner" style="visibility: hidden">
  128.             <!-- using a table with nowrap to prevent word wrapping -->
  129.             <table><tr><td nowrap>
  130.                 <p class=Title style="margin-left: 16px; margin-top: 4px">
  131.                 <!--webbot bot="HTMLMarkup" startspan alt="<B><I>Web View Folder Title</I></B> " -->
  132.                 %THISDIRNAME%
  133.                 <!--webbot bot="HTMLMarkup" endspan -->
  134.             </td></tr></table>
  135.         </div>
  136.         <!-- end mini banner -->
  137.  
  138.         <!-- start left info panel -->
  139.         <div id="Panel">
  140.             <p style="margin-top: 16px");
  141.             <span id="Info">
  142.             </span>
  143.  
  144.             <p>
  145.             <a href="http://www.microsoft.com/">Microsoft Home</a>
  146.             <p class=Links>
  147.             <a href="http://www.microsoft.com/support/mtshome.asp">Technical Support</a>
  148.         </div>
  149.         <!-- end left info panel -->
  150.  
  151.         <!-- this is the standard file list control -->
  152.         <!-- webbot bot="HTMLMarkup" startspan u-src="file:///C:\Program Files\Microsoft FrontPage Express\Data\FoldData.gif" -->
  153.         <object id="FileList" border=0 tabindex=1 classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2"
  154.         </object>
  155.         <!-- webbot bot="HTMLMarkup" endspan -->
  156.  
  157.     </body>
  158. </html>
  159.  
  160.