home *** CD-ROM | disk | FTP | other *** search
/ InterCD 1999 June / june_1999.iso / Browsers / IE5_Hebrew / SETUPW95.CAB / folder.htt < prev    next >
Encoding:
Text File  |  1999-05-06  |  12.7 KB  |  369 lines

  1. <!-- 
  2.  * This file was automatically generated by Microsoft Internet Explorer 4.0 
  3.  * using the file %THISDIRPATH%\folder.htt.
  4.  -->
  5.  
  6. <html>
  7.     <style>
  8.         body        {font: 8pt/10pt verdana; margin: 0}
  9.         #FileList    {position: absolute; left: 0%; width: 70%; height: 100%; overflow: auto}
  10.         #Media        {margin-left: 15px}
  11.         #Panel        {position: absolute; left: 70%; width: 30%; height: 100%; overflow: auto}
  12.         #PieChart    {width: 100px; height: 50px; margin-top: 10px}
  13.         #Thumbnail    {width: 160px; height: 160px; margin-top: 0px}
  14.         #Status        {margin-left: 15px}
  15.         #Brand        {position: absolute; left: 0%; width: 70%; height: 100%; overflow: auto}
  16.         p        {margin-left: 15px; margin-top: 15px; margin-right: 15px}
  17.         p.Title        {font: 16pt; font-weight: bold; margin-top: 5px}
  18.         p.LogoLine    {margin-left: 0; margin-top: -5px; margin-right: 0; margin-bottom: 20px}
  19.         p.Warning    {font-weight: bold; color: red}
  20.         p.Links        {margin-top: 5px}
  21.         a.Command    {font-weight: bold}
  22.         div.Release     {width: 160px; text-align: right; background: buttonface; padding: 0px, 8px, 4px, 8px}
  23.     </style>
  24.  
  25.     <head>
  26.         <META HTTP-EQUIV="Content-Type" content="text/html; charset=windows-1255">
  27.         <!-- allow references to any resources you might add to the folder -->
  28.         <!-- (a "webbot" is a special wrapper for FrontPage compatibility) -->
  29.         <!-- webbot bot="HTMLMarkup" tag="base" startspan -->
  30.         <base href="%THISDIRPATH%\">
  31.         <!-- webbot bot="HTMLMarkup" endspan -->
  32.  
  33.         <script language="JavaScript">
  34.             var L_Intro_Text    = "<b><font color=red>αµΣ°Σ</font></b><br><br>∙Θ≡σΘ ·σδ≡Σ ∙∞ ·Θ≈ΘΣ µσ ≥∞σ∞ ∞Γ°σφ ∞·σδ≡Θσ· ∙∞Ω ∞Σ⌠±Θ≈ ∞⌠≥σ∞ ßασ⌠∩ ·≈Θ∩.";
  35.             var L_Prompt_Text    = "ßτ° ß⌠°ΘΦ δπΘ ∞Σ÷ΘΓ α· ·Θασ°σ.";
  36.             var L_Prompt1_Text    = "δπΘ ∞Σ÷ΘΓ α· ·σδ≡Σ ∙∞ ·Θ≈ΘΣ µσ, ∞τ⌡ ≥∞ <a class=command href=\':Show Files\' onClick=\'ShowFiles(); return false;\'>Σ÷Γ ≈ß÷Θφ</a>.";
  37.             var L_Multiple_Text    = " ⌠°ΘΦΘφ ≡ßτ°σ.";
  38.             var L_Size_Text        = "Γσπ∞: ";
  39.             var L_FileSize_Text    = "Γσπ∞ ≈σß⌡ δσ∞∞: ";
  40.             var L_Delimiter_Text    = ",";
  41.             var L_Bytes_Text    = " ß·Θφ";
  42.             var L_Attributes_Text    = "·δσ≡σ·";
  43.             var L_Codes_Text    = "RHSaCE"; // suppress the Archive flag
  44.             var L_ReadOnly_Text     = "≈°ΘαΣ ß∞ßπ";
  45.             var L_Hidden_Text    = "εσ±·°";
  46.             var L_System_Text    = "ε≥°δ·";
  47.             var L_Archive_Text    = "α°δΘσ∩";
  48.             var L_Compressed_Text    = "πτσ±";
  49.             var L_Encrypted_Text    = "εσ÷⌠∩";
  50.             var L_NoAttributes_Text = "(°ΓΘ∞)";
  51.             var L_Properties_Text    = "εα⌠ΘΘ≡Θφ";
  52.             var timer        = 0;
  53.             var wantMedia        = false; // cool, but may hinder media file manipulation
  54.             var showFiles        = false;
  55.  
  56.             function FixSize() {
  57.                 // this function handles fixed panel sizing and collapsing when the window resizes
  58.                 var threshold    = 450;
  59.                 var miniHeight    = 32;
  60.                 var ch        = document.body.clientHeight;
  61.                 var cw        = document.body.clientWidth;
  62.  
  63.                 if (cw < threshold) {
  64.                     document.all.Panel.style.visibility = "hidden";
  65.                     if (showFiles) {
  66.                         document.all.MiniBanner.style.visibility = "visible";
  67.                         document.all.FileList.style.top = miniHeight;
  68.                         document.all.FileList.style.left = 0;
  69.                         document.all.FileList.style.width = cw;
  70.                         document.all.FileList.style.height = (ch - miniHeight) >= 0 ? (ch - miniHeight) : 0;
  71.                     } else {
  72.                         document.all.Brand.style.top = 0;
  73.                         document.all.Brand.style.left = 0;
  74.                         document.all.Brand.style.width = cw;
  75.                         document.all.Brand.style.height = ch >= 0 ? ch : 0;
  76.                         document.all.Brand.innerHTML = "<p>" + L_Intro_Text + "<br><br>" + L_Prompt1_Text;
  77.                     }
  78.                 } else {
  79.                     document.all.MiniBanner.style.visibility = "hidden";
  80.                     document.all.Panel.style.visibility = "visible";
  81.                     if (showFiles) {
  82.                         document.all.FileList.style.top = 0;
  83. //                        document.all.FileList.style.left = document.all.Panel.style.pixelWidth;
  84.                         document.all.FileList.style.left = 0;
  85.                         document.all.FileList.style.width = cw - document.all.Panel.style.pixelWidth;
  86.                         document.all.FileList.style.height = ch;
  87.                     } else {
  88.                         document.all.Brand.style.top = 0;
  89. //                        document.all.Brand.style.left = document.all.Panel.style.pixelWidth; 
  90.                         document.all.Brand.style.left = 0; 
  91.                         document.all.Brand.style.width = cw - document.all.Panel.style.pixelWidth;
  92.                         document.all.Brand.style.height = ch;
  93.                         document.all.Brand.innerHTML = "";
  94.                     }
  95.                 }
  96.             }
  97.  
  98.             function ShowFiles() {
  99.                 Info.innerHTML = L_Intro_Text + "<br><br>" + L_Prompt_Text;
  100.                 showFiles = true;
  101.                 document.all.FileList.style.display = "";
  102.                 document.all.Brand.style.display = "none";
  103.                 FixSize();
  104.             }
  105.  
  106.             function FormatNumber(n) {
  107.                 var t = "";
  108.                 var i, j = 0;
  109.                 for (i = n.length - 1; i >= 0; i--) {
  110.                     t = n.charAt(i) + t;
  111.                     if (i && ((++j % 3) == 0))
  112.                         t = L_Delimiter_Text + t;
  113.                 }
  114.                 return t;
  115.             }
  116.  
  117.             function Properties() {
  118.                 FileList.SelectedItems().Item(0).InvokeVerb(L_Properties_Text);
  119.             }
  120.  
  121.             function Init() {
  122.                 document.all.FileList.style.display = "none";
  123.                 document.all.Brand.style.display = "";
  124.                 // call our FixSize() function whenever the window gets resized
  125.                 window.onresize = FixSize;
  126.                 FixSize();
  127.                 Info.innerHTML = L_Intro_Text + "<br><br>" + L_Prompt1_Text;
  128.             }
  129.         </script>
  130.  
  131.         <script language="JavaScript" for="FileList" event="SelectionChanged">
  132.             // this script updates the left info panel when you select icons
  133.             var fldr = FileList.Folder;
  134.             var items;
  135.             var name;
  136.             var data;
  137.             var text;
  138.             var title;
  139.             var size = 0;
  140.             var i;
  141.  
  142.             // cancel any pending status message
  143.             if (timer) {
  144.                 window.clearTimeout(timer);
  145.                 timer = 0;
  146.             }
  147.  
  148.             // erase any visible thumbnail since the selection changed
  149.             document.all.Thumbnail.style.display = "none";
  150.             document.all.Status.style.display = "none";
  151.  
  152.             // stop & destroy any media player
  153.             if (wantMedia)
  154.                 document.all.Media.innerHTML = "";
  155.  
  156.             data = FileList.SelectedItems().Count;
  157.             if (data == 0) {
  158.                 // nothing selected?
  159.                 Info.innerHTML = L_Intro_Text + "<br><br>" + L_Prompt_Text;
  160.                 return;
  161.             }
  162.             else if (data > 1) {
  163.                 // more than one item selected?
  164.                 text = data + L_Multiple_Text + "<br>";
  165.                 if (data <= 100) {
  166.                     for (i = 0; i < data; i++)
  167.                         size += FileList.SelectedItems().Item(i).Size;
  168.                     if (size)
  169.                         text += "<br>" + L_FileSize_Text + FormatNumber(size.toString()) + L_Bytes_Text + "<br>";
  170.                     if (data <= 16)
  171.                         for (i = 0; i < data; i++)
  172.                             text += "<br>" + FileList.SelectedItems().Item(i).Name;
  173.                 }
  174.                 Info.innerHTML = text;
  175.                 return;
  176.             }
  177.  
  178.             items = FileList.SelectedItems().Item(0);
  179.  
  180.             // name
  181.             name = fldr.GetDetailsOf(items, 0);
  182.             text = "<b>" + name + "</b>";
  183.  
  184.             // type
  185.             data = fldr.GetDetailsOf(items, 2);
  186.             if (data)
  187.                 text += "<br>" + data;
  188.  
  189.             // date
  190.             data = fldr.GetDetailsOf(items, 3);
  191.             if (data)
  192.                 text += "<br><br>" + fldr.GetDetailsOf(null, 3) + ":<br>" + data;
  193.  
  194.             // size?
  195.             size = FileList.SelectedItems().Item(0).Size;
  196.             if (size)
  197.                 if (size < 1000)
  198.                     text += "<br><br>" + L_Size_Text + size + L_Bytes_Text;
  199.                 else {
  200.                     data = fldr.GetDetailsOf(items, 1);
  201.                     if (data)
  202.                         text += "<br><br>" + fldr.GetDetailsOf(null, 1) + ": " + data;
  203.                     else
  204.                         text += "<br><br>" + L_Size_Text + FormatNumber(size.toString()) + L_Bytes_Text;
  205.                 }
  206.  
  207.             // extra details?
  208.             for (i = 4; i < 10; i++) {
  209.                 title = fldr.GetDetailsOf(null, i);
  210.                 if (!title)
  211.                     break;
  212.                 data = fldr.GetDetailsOf(items, i);
  213.                 if (title == L_Attributes_Text) {
  214.                     var code;
  215.                     var s = "";
  216.  
  217.                     text += "<br><br>" + title.link("JavaScript:onClick=Properties()") + ": ";
  218.                     for (i = 0; i < 6; i++) {
  219.                         code = L_Codes_Text.charAt(i);
  220.                         if (data.indexOf(code) > -1) {
  221.                             if (s)
  222.                                 s += ", ";
  223.                             if (i == 0)
  224.                                 s += L_ReadOnly_Text;
  225.                             else if (i == 1)
  226.                                 s += L_Hidden_Text;
  227.                             else if (i == 2)
  228.                                 s += L_System_Text;
  229.                             else if (i == 3)
  230.                                 s += L_Archive_Text;
  231.                             else if (i == 4)
  232.                                 s += L_Compressed_Text;
  233.                             else if (i == 5)
  234.                                 s += L_Encrypted_Text;
  235.                         }
  236.                     }
  237.                     if (!s)
  238.                         s = L_NoAttributes_Text;
  239.                     text += s;
  240.                 }
  241.                 else if (data)
  242.                     text += "<br><br>" + title + ":<br>" + data;
  243.             }
  244.  
  245.             // tip?
  246.             data = fldr.GetDetailsOf(items, -1);
  247.             if (data && data != name) {
  248.                 var start;
  249.                 var end;
  250.                 var theLink;
  251.                 var a;
  252.  
  253.                 // parse lines for Office files without breaking links below
  254.                 a = data.split("\n");
  255.                 data = a.join("<br>\n");
  256.  
  257.                 // look for embedded links
  258.                 text += "<br><br>";
  259.                 start = data.indexOf("http://");
  260.                 if (start < 0)
  261.                     start = data.indexOf("file://");
  262.                 if (start < 0)
  263.                     text += data;
  264.                 else {
  265.                     end = data.indexOf(" ", start);
  266.                     if (end < 0)
  267.                         end = data.length;
  268.                     if (start > 0)
  269.                         text += data.substring(0, start - 1);
  270.                     theLink = data.substring(start, end);
  271.                     text += theLink.link(theLink);
  272.                     if (end < data.length)
  273.                         text += data.substring(end + 1, data.length);
  274.                 }
  275.             }
  276.  
  277.             // replace Info with the new text
  278.             Info.innerHTML = text;
  279.  
  280.             if (wantMedia && size) {
  281.                 // show media preview or thumbnail based on file extension
  282.                 ext = name.substring(name.lastIndexOf(".") + 1, name.length);
  283.                 ext = ext.toLowerCase();        
  284.                 if (ext == 'avi' || ext == 'mov' || ext == 'qt' || ext == 'mpe' || ext == 'mpeg' || ext == 'mpg') {
  285.                     // show a movie player
  286.                     document.all.Media.innerHTML = '<object ID="Player" style="width: 160px; height: 148px" classid=clsid:05589FA1-C356-11CE-BF01-00AA0055595A><param name="FileName" value="' + items.Path + '"><param name=ShowDisplay value=0><param name=BorderStyle value=0></object>';
  287.                 } else if (ext == 'aif' || ext == 'aifc' || ext == 'aiff' || ext == 'au' || ext == 'mid' || ext == 'rmi' || ext == 'snd' || ext == 'wav') {
  288.                     // show a sound player
  289.                     document.all.Media.innerHTML = '<object ID="Player" style="width: 160px; height: 28px" classid=clsid:05589FA1-C356-11CE-BF01-00AA0055595A><param name="FileName" value="' + items.Path + '"><param name=ShowDisplay value=0></center></object>'
  290.                 }
  291.             }
  292.             
  293.             // try to generate a new thumbnail asynchronously, and delay the status message one second
  294.             if (size && (size < 10000000) && Thumbnail.displayFile(items.Path))
  295.                 timer = window.setTimeout('document.all.Status.style.display = ""', 1000);
  296.         </script>
  297.  
  298.         <script language="JavaScript" for="Thumbnail" event="OnThumbnailReady">
  299.             // when a valid thumbnail has been generated, display it
  300.             window.clearTimeout(timer);
  301.             timer = 0;
  302.             document.all.Status.style.display = "none";
  303.             if (document.all.Thumbnail.haveThumbnail() && document.all.Media.innerHTML == "")
  304.                 document.all.Thumbnail.style.display = "";
  305.         </script>
  306.     </head>
  307.  
  308.     <body scroll=no onload="Init()">
  309.  
  310.         <!-- start mini banner -->
  311.         <div ID="MiniBanner" style="visibility: hidden; position: absolute; width: 100%; height: 32px; background: window">
  312.             <!-- using a table with nowrap to prevent word wrapping -->
  313.             <table><tr><td nowrap>
  314.                 <p class=Title style="margin-top: 0">
  315.                 <!--webbot bot="HTMLMarkup" startspan alt="<B><I>Web View Folder Title</I></B> " -->
  316.                 %THISDIRNAME%
  317.                 <!--webbot bot="HTMLMarkup" endspan -->
  318.             </td></tr></table>
  319.         </div>
  320.         <!-- end mini banner -->
  321.  
  322.         <!-- start left info panel -->
  323.         <div dir=rtl id=Panel style="background: white URL(file://%TEMPLATEDIR%\wvleft.bmp) top right no-repeat">
  324.             <p>
  325.             <object classid="clsid:E5DF9D10-3B52-11D1-83E8-00A0C90DC849" width=32 height=32>
  326.                 <param name="scale" value="100">
  327.             </object>
  328.  
  329.             <p class=Title>
  330.             <!--webbot bot="HTMLMarkup" startspan alt="<B><I>Web View Folder Title</I></B> " -->
  331.             <span dir=ltr> %THISDIRNAME% </span>
  332.             <!--webbot bot="HTMLMarkup" endspan -->
  333.             
  334.             <p class=LogoLine>
  335.             <img src="%TEMPLATEDIR%\wvline.gif" width=100% height=1px>
  336.             
  337.             <p>
  338.             <span id=Info>
  339.             </span>
  340.  
  341.             <p>
  342.             <!-- this is the thumbnail viewer control -->
  343.             <object id=Thumbnail classid="clsid:1D2B4F40-1F10-11D1-9E88-00C04FDCAB92" style="display: none">
  344.             </object>
  345.  
  346.             <div id=Status style="display: none">
  347.                 Θσ÷° ·÷σΓΣ ε≈πΘεΣ...
  348.             </div>
  349.  
  350.             <p>
  351.             <!-- this contains any ActiveMovie control created later -->
  352.             <div id=Media>
  353.             </div>
  354.  
  355.         </div>
  356.         <!-- end left info panel -->
  357.  
  358.         <!-- this is a Windows graphic that covers up the files -->
  359.         <div dir=rtl id=Brand style="background: white URL(file://%TEMPLATEDIR%\wvlogo.gif) no-repeat left bottom">
  360.         </div>
  361.         <!-- this is the standard file list control -->
  362.         <!-- webbot bot="HTMLMarkup" startspan -->
  363.         <object id=FileList border=0 tabindex=0 style="display: none" classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2">
  364.         </object>
  365.         <!-- webbot bot="HTMLMarkup" endspan -->
  366.     </body>
  367. </html>
  368.  
  369.