home *** CD-ROM | disk | FTP | other *** search
/ PC World Plus! (NZ) 2001 September / PCW0901.iso / Firewalls / NortonPFW / pfirewal.exe / NPF / NPF.MSI / folder.htt < prev    next >
Text File  |  2000-07-24  |  7KB  |  179 lines

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