home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 4.15 / 1999-09_Disc_4.15.bin / ELINK / MSIE540 / IE4SHL95.CAB / printers.htt < prev    next >
Text File  |  1999-01-29  |  7KB  |  183 lines

  1. <!-- 
  2.  * This file was automatically generated by Microsoft Internet Explorer 4.0 
  3.  * using the file %TEMPLATEDIR%\printers.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    = "This folder contains information about your current printers and a wizard to help you install new ones.<br><br>To get information about a printer that's already installed, right-click the printer's icon.<br><br>To install a new printer, click <b>Add Printer</b> to start the Add Printer wizard.<br><br>Select an icon to view its description.";
  36.             var L_Multiple_Text    = " objects selected.";
  37.             var L_Help_Text        = "The Add Printer wizard walks you step-by-step through installing a printer. Just follow the instructions on each screen.";
  38.  
  39.             function FixSize() {
  40.                 // this function handles fixed panel sizing and collapsing when the window resizes
  41.                 var hideTop    = 200;
  42.                 var hideLeft    = 400;
  43.                 var miniHeight    = 32;
  44.                 var ch        = document.body.clientHeight;
  45.                 var cw        = document.body.clientWidth;
  46.  
  47.                 if (hideTop > ch) {
  48.                     document.all.Banner.style.visibility = "hidden";
  49.                     document.all.MiniBanner.style.visibility = "visible";
  50.                     document.all.FileList.style.top = miniHeight;
  51.                     document.all.Panel.style.top = miniHeight;
  52.                 } else {
  53.                     document.all.Banner.style.visibility = "visible";
  54.                     document.all.MiniBanner.style.visibility = "hidden";
  55.                     document.all.FileList.style.top = (document.all.Banner.offsetHeight - 32) + "px";
  56.                     document.all.Panel.style.top = (document.all.Banner.offsetHeight) + "px";
  57.                     document.all.Rule.style.width = (cw > 84 ? cw - 84 : 0) + "px";      
  58.                 }
  59.                 if (hideLeft > cw) {
  60.                     document.all.Panel.style.visibility = "hidden";
  61.                     document.all.FileList.style.pixelLeft = 0;
  62.                     document.all.FileList.style.pixelTop = document.all.Panel.style.pixelTop;
  63.                 } else {
  64.                     document.all.Panel.style.visibility = "visible";
  65.                     document.all.FileList.style.pixelLeft = document.all.Panel.style.pixelWidth;
  66.                 }
  67.                 document.all.FileList.style.pixelWidth = cw - document.all.FileList.style.pixelLeft;
  68.                 document.all.FileList.style.pixelHeight = ch - document.all.FileList.style.pixelTop;
  69.                 document.all.Panel.style.pixelHeight = ch - document.all.Panel.style.pixelTop;
  70.             }
  71.  
  72.             function Init() {
  73.                 // call our FixSize() function whenever the window gets resized
  74.                 window.onresize = FixSize;
  75.                 FixSize();
  76.                 Info.innerHTML = L_Intro_Text;
  77.             }
  78.         </script>
  79.  
  80.         <script language="JavaScript" for="FileList" event="SelectionChanged">
  81.             // this script updates the left info panel when you select icons
  82.             var items    = FileList.FocusedItem;
  83.             var fldr    = FileList.Folder;
  84.             var data;
  85.             var text;
  86.             var i;
  87.  
  88.             data = FileList.SelectedItems().Count;
  89.             if (data == 0) {
  90.                 // nothing selected?
  91.                 Info.innerHTML = L_Intro_Text;
  92.                 return;
  93.             }
  94.             else if (data > 1) {
  95.                 // more than one item selected?
  96.                 text = data + L_Multiple_Text + "<br>";
  97.                 if (data <= 16)
  98.                     for (i = 0; i < data; i++)
  99.                         text += "<br>" + FileList.SelectedItems().Item(i).Name;
  100.                 Info.innerHTML = text;
  101.                 return;
  102.             }
  103.  
  104.             // name
  105.             text = "<b>" + items.Name + "</b>";
  106.  
  107.             // comment
  108.             data = fldr.GetDetailsOf(items, 3);
  109.             if (data)
  110.                 text += "<br>" + data;
  111.  
  112.             // documents
  113.             data = fldr.GetDetailsOf(items, 1);
  114.             if (data)
  115.                 text += "<br><br>" + fldr.GetDetailsOf(null, 1) + ": " + data;
  116.  
  117.             // status
  118.             data = fldr.GetDetailsOf(items, 2);
  119.             if (data)
  120.                 text += "<br><br><b><font color=red>" + data + "</font></b>";
  121.  
  122.             // tip?
  123.             data = fldr.GetDetailsOf(items, -1);
  124.             if (data != "" && data != items.Name)
  125.                 text += "<br><br>" + data;
  126.  
  127.             // help
  128.             if (fldr.GetDetailsOf(items, 0) == "WinUtils_NewObject")
  129.                 text += "<br><br>" + L_Help_Text;
  130.  
  131.             Info.innerHTML = text;
  132.         </script>
  133.     </head>
  134.  
  135.     <body scroll=no onload="Init()">
  136.  
  137.         <!-- start normal banner -->
  138.         <div id="Banner" style="visibility: hidden">
  139.             <!-- using a table with nowrap to prevent word wrapping -->
  140.             <table><tr><td nowrap>
  141.                 <p class=Title style="margin-left: 104px; margin-top: 16px">
  142.                 <!--webbot bot="HTMLMarkup" startspan alt="<B><I>Web View Folder Title</I></B> " -->
  143.                 %THISDIRNAME%
  144.                 <!--webbot bot="HTMLMarkup" endspan -->
  145.             </td></tr></table>
  146.             <!-- this is more efficient than a long graphic, but we have to adjust it in FixSize() -->
  147.             <hr id="Rule" size=1px color=black style="position: absolute; top: 44px; left: 84px">
  148.             <!-- this is our awesome icon extractor -->
  149.             <object id=Icon classid="clsid:e5df9d10-3b52-11d1-83e8-00a0c90dc849">
  150.                 <param name="scale" value=200>
  151.             </object>
  152.         </div>
  153.         <!-- end normal banner -->
  154.  
  155.         <!-- start mini banner -->
  156.         <div id="MiniBanner" style="visibility: hidden">
  157.             <!-- using a table with nowrap to prevent word wrapping -->
  158.             <table><tr><td nowrap>
  159.                 <p class=Title style="margin-left: 16px; margin-top: 4px">
  160.                 <!--webbot bot="HTMLMarkup" startspan alt="<B><I>Web View Folder Title</I></B> " -->
  161.                 %THISDIRNAME%
  162.                 <!--webbot bot="HTMLMarkup" endspan -->
  163.             </td></tr></table>
  164.         </div>
  165.         <!-- end mini banner -->
  166.  
  167.         <!-- start left info panel -->
  168.         <div id="Panel">
  169.             <p style="margin-top: 16px");
  170.             <span id="Info">
  171.             </span>
  172.         </div>
  173.         <!-- end left info panel -->
  174.  
  175.         <!-- this is the standard file list control -->
  176.         <!-- webbot bot="HTMLMarkup" startspan u-src="file:///C:\Program Files\Microsoft FrontPage Express\Data\FoldData.gif" -->
  177.         <object id="FileList" border=0 tabindex=1 classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2"
  178.         </object>
  179.         <!-- webbot bot="HTMLMarkup" endspan -->
  180.  
  181.     </body>
  182. </html>
  183.