home *** CD-ROM | disk | FTP | other *** search
/ Netwerk 14 / Netwerk_Vol14.iso / nortonfw / NPF / NPF.MSI / folder.htt < prev    next >
Text File  |  2000-05-25  |  7KB  |  183 lines

  1. <!-- Norton Internet Security 2000 
  2.         folder.htt
  3.         Copyright (c) 1999 Symantec Corporation. All Rights Reserved.
  4. -->
  5.  
  6. <html>
  7.     <style>
  8.         body        {font: 8pt/10pt Arial, Verdana; margin: 0}
  9.         #FileList    {position: absolute; left: 30%; width: 70%; height: 100%}
  10.         #Panel        {position: absolute; width: 30%; height: 100%; overflow: auto}
  11.         #Status        {margin-left: 15px}
  12.         #Brand        {position: absolute;  left: 30%; width: 70%;  height: 100%; overflow: auto}
  13.         p            {margin-left: 15px; margin-top: 15px; margin-right: 15px}
  14.         p.Title        {font: 16pt; font-weight: bold; margin-top: 5px}
  15.         p.LogoLine    {margin-left: 0; margin-top: -5px; margin-right: 0; margin-bottom: 20px}
  16.         a.Command    {font-weight: bold}
  17.     </style>
  18.  
  19.     <head>
  20.         <!-- allow references to any resources you might add to the folder -->
  21.         <base href="%THISDIRPATH%\">
  22.  
  23.         <script language="JavaScript">
  24.             var L_Intro_Text    = "<b><font color=red>Caution</font></b><br><br>Moving, deleting or changing any of the files in this folder may cause Norton Internet Security 2000 to operate incorrectly.";
  25.             var L_Prompt_Text    = "To hide the contents of this folder, click <a href=''class=command onclick='Init(); HideFilesStatus(winStat); return false;' onMouseOver='HideFilesStatus(!winStat); return true;' onMouseOut='HideFilesStatus(winStat); return true;' onFocus='HideFilesStatus(!winStat); return true;' onBlur='HideFilesStatus(winStat); return true;'>Hide Files</a>";
  26.             var L_Prompt1_Text    = "To view the contents of this folder, click <a href=''class=command onclick='ShowFiles(); ShowFilesStatus(winStat); return false;' onMouseOver='ShowFilesStatus(!winStat); return true;' onMouseOut='ShowFilesStatus(winStat); return true;' onFocus='ShowFilesStatus(!winStat); return true;' onBlur='ShowFilesStatus(winStat); return true;'>Show Files</a>";
  27.             var timer            = 0;
  28.             var showFiles        = false;
  29.             var winStat            = false;
  30.  
  31.             function FixSize() {
  32.                 // this function handles fixed panel sizing and collapsing when the window resizes
  33.                 var threshold    = 450;
  34.                 var miniHeight    = 32;
  35.                 var ch        = document.body.clientHeight;
  36.                 var cw        = document.body.clientWidth;
  37.  
  38.                 if (cw < threshold) {
  39.                     document.all.Panel.style.visibility = "hidden";
  40.                     if (showFiles) {
  41.                         document.all.MiniBanner.style.visibility = "visible";
  42.                         document.all.FileList.style.top = miniHeight;
  43.                         document.all.FileList.style.left = 0;
  44.                         document.all.FileList.style.width = cw;
  45.                         document.all.FileList.style.height = (ch - miniHeight) >= 0 ? (ch - miniHeight) : 0;
  46.                         document.all.Brand.innerHTML = "<p>" + L_Intro_Text + "<br><br>" + L_Prompt_Text;
  47.                     } else {
  48.                         document.all.Brand.style.top = 0;
  49.                         document.all.Brand.style.left = 0;
  50.                         document.all.Brand.style.width = cw;
  51.                         document.all.Brand.style.height = ch >= 0 ? ch : 0;
  52.                         document.all.Brand.innerHTML = "<p>" + L_Intro_Text + "<br><br>" + L_Prompt1_Text;
  53.                     }
  54.                 } else {
  55.                     document.all.MiniBanner.style.visibility = "hidden";
  56.                     document.all.Panel.style.visibility = "visible";
  57.                     if (showFiles) {
  58.                         document.all.FileList.style.top = 0;
  59.                         document.all.FileList.style.left = document.all.Panel.style.pixelWidth;
  60.                         document.all.FileList.style.width = cw - document.all.Panel.style.pixelWidth;
  61.                         document.all.FileList.style.height = ch;
  62.                     } else {
  63.                         document.all.Brand.style.top = 0;
  64.                         document.all.Brand.style.left = document.all.Panel.style.pixelWidth; 
  65.                         document.all.Brand.style.width = cw - document.all.Panel.style.pixelWidth;                        
  66.                         document.all.Brand.style.height = ch;
  67.                         document.all.Brand.innerHTML = "";
  68.                     }
  69.                 }
  70.             }
  71.  
  72.             function ShowFilesStatus(winStat) {
  73.                 if (winStat) 
  74.                     window.status="Show Files";
  75.                 else
  76.                     window.status="";
  77.             }
  78.  
  79.             function HideFilesStatus(winStat) {
  80.                 if (winStat) 
  81.                     window.status="Hide Files";
  82.                 else
  83.                     window.status="";
  84.             }
  85.             function ShowFiles() {
  86.                 Info.innerHTML = L_Intro_Text + "<br><br>" + L_Prompt_Text;
  87.                 showFiles = true;
  88.                 document.all.FileList.style.display = "";
  89.                 document.all.Brand.style.display = "none";
  90.                 FixSize();
  91.             }
  92.  
  93.             function Init() {
  94.                 document.all.FileList.style.display = "none";
  95.                 document.all.Brand.style.display = "";
  96.                 // call our FixSize() function whenever the window gets resized
  97.                 window.onresize = FixSize;
  98.                 FixSize();
  99.                 Info.innerHTML = L_Intro_Text + "<br><br>" + L_Prompt1_Text;
  100.             }
  101.         </script>
  102.  
  103.         <script language="JavaScript" for="FileList" event="SelectionChanged">
  104.             // Updates the TextBlock region when an item is selected
  105.             var data;
  106.             var text = "";
  107.  
  108.             // name
  109.             text = "<b>" + FileList.FocusedItem.Name + "</b>";
  110.  
  111.             // comment
  112.             data = FileList.Folder.GetDetailsOf(FileList.FocusedItem, 3);
  113.             if (data)
  114.                 text += "<br>" + data;
  115.  
  116.             // documents
  117.             data = FileList.Folder.GetDetailsOf(FileList.FocusedItem, 1);
  118.             if (data)
  119.                 text += "<br><br>" + FileList.Folder.GetDetailsOf(null, 1) + ": " + data;
  120.  
  121.             // status
  122.             data = FileList.Folder.GetDetailsOf(FileList.FocusedItem, 2);
  123.             if (data)
  124.                 text += "<br><br><b><font color=red>" + data + "</font></b>";
  125.  
  126.             // tip?
  127.             data = FileList.Folder.GetDetailsOf(FileList.FocusedItem, -1);
  128.             if (data != "" && data != FileList.FocusedItem.Name)
  129.                 text += "<br><br>" + data;
  130.  
  131.             // replace Info with the new text
  132.             Info.innerHTML = text;
  133.  
  134.         </script>
  135.     </head>
  136.  
  137.     <body scroll=no onload="Init()">
  138.  
  139.         <!-- start mini banner -->
  140.         <div ID="MiniBanner" style="visibility: hidden; position: absolute; width: 100%; height: 32px; background: window">
  141.             <!-- using a table with nowrap to prevent word wrapping -->
  142.             <table><tr><td nowrap>
  143.                 <p class=Title style="margin-top: 0">
  144.                 %THISDIRNAME%
  145.             </td></tr></table>
  146.         </div>
  147.         <!-- end mini banner -->
  148.  
  149.         <!-- start left info panel -->
  150.         <div id=Panel style="background: white URL(file://%THISDIRPATH%\NISLeft.gif) no-repeat">
  151.             <p>
  152.             <object classid="clsid:E5DF9D10-3B52-11D1-83E8-00A0C90DC849" width=32 height=32>
  153.                 <param name="scale" value=100>
  154.             </object>
  155.  
  156.             <p class=Title>
  157.             %THISDIRNAME%
  158.             
  159.             <p class=LogoLine>
  160.             <!-- show a NIS purple line -->
  161.             <img src="%THISDIRPATH%\NISLine.gif" width=100% height=1px>
  162.             
  163.             <p>
  164.             <span id=Info>
  165.             </span>
  166.  
  167.             <p>
  168.             <!-- this is the thumbnail viewer control -->
  169.             <object id=Thumbnail classid="clsid:1D2B4F40-1F10-11D1-9E88-00C04FDCAB92" style="display: none">
  170.             </object>
  171.  
  172.         </div>
  173.         <!-- end left info panel -->
  174.  
  175.         <!-- this is a NIS Folder Backgroud image that covers up the files -->
  176.         <div id=Brand style="background: white URL(file://%THISDIRPATH%\NISFolderBackground.gif) no-repeat right bottom ">
  177.         </div>
  178.         <!-- this is the standard file list control -->
  179.         <object id=FileList border=0 tabindex=0 style="display: none" classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2">
  180.         </object>
  181.     </body>
  182. </html>
  183.