home *** CD-ROM | disk | FTP | other *** search
/ Kompuutteri Kaikille K-CD 2003 #3 / K-CD_2003-03.iso / Explorer6 / DA / IEW2K_4.CAB / msieftp.dll / HTML / FTP.HTT next >
Text File  |  2002-09-10  |  12KB  |  301 lines

  1. <!-- 
  2. * Copyright 1999 Microsoft Corporation.  All rights reserved.
  3. * This file was automatically generated by Microsoft Internet Explorer
  4. * using the file %TEMPLATEDIR%\ftp.htt
  5. -->
  6.  
  7. <HTML>
  8.     <STYLE>
  9.         body        {font: 8pt/10pt verdana; margin: 0}
  10.         #Banner        {position: absolute; width: 100%; height: 88px}
  11.         #MiniBanner    {position: absolute; width: 100%; height: 32px; background: window}
  12.         #Icon        {position: absolute; left: 11px; top: 12px; width: 64px; height: 64px}
  13.         #FileList    {position: absolute; left: 30%; top: 88px; width: 1px; height: 1px}
  14.         #Media        {margin-left: 20px; margin-top: 10px}
  15.         #Panel        {position: absolute; top: 88px; width: 30%; overflow: auto}
  16.         #PieChart    {width: 100px; height: 50px; margin-top: 10px}
  17.         #Thumbnail    {width: 160px; height: 160px; margin-top: 0px}
  18.         #Status        {margin-left: 20px}
  19.         p        {margin-right: 8px}
  20.         p.Title        {font: 16pt/16pt verdana; font-weight: bold; color: #0099FF}
  21.         p.Warning    {font-weight: bold; color: red}
  22.         p.Links        {margin-top: 4px}
  23.         p.SiteInfo    {margin-top: 4px}
  24.         a:link        {color: #FF6633}
  25.         a:visited    {color: #0099FF}
  26.         a:active     {color: black}
  27.         input        {font: 8pt/10pt verdana}
  28.         button        {font: 8pt/10pt verdana}
  29.         .Message     {margin-right: 0; padding: 3px; background: infobackground; color: infotext; border: 1px solid lightgrey}
  30.         .accesskey  {}
  31.     </STYLE>
  32.  
  33.     <HEAD>
  34. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
  35.     <!-- allow references to any resources you might add to the folder -->
  36.     <BASE href="%THISDIRPATH%\">
  37.  
  38.     <SCRIPT LANGUAGE="vbscript">
  39.         Const g_nCR = 13
  40.         Const g_nLF = 10
  41.  
  42.         Function TranslateCRs(strIn)
  43.         Dim strOut
  44.         strOut = ""
  45.  
  46.         While 0 < Len(strIn)
  47.             if Asc(strIn) = g_nCR then
  48.                 strIn = strIn & " "
  49.                 strIn = Right(strIn, Len(strIn) - 1)
  50.             else
  51.                 strOut = strOut & Chr(Asc(strIn))
  52.             end if
  53.  
  54.             strIn = Right(strIn, Len(strIn) - 1)
  55.         Wend
  56.  
  57.         TranslateCRs = strOut
  58.         end Function
  59.     </SCRIPT>
  60.  
  61.     <SCRIPT LANGUAGE="JavaScript">
  62.         // To localize
  63.         var L_Intro_Text    = "";
  64.         var L_Multiple_Text    = " markerede objekter.";
  65.         var L_AnonymousUserName_Text = "Anonymt";
  66.         var L_MOTDDialogTitle_Text = "Serveren har givet f°lgende meddelelse om brug af serveren:\n\n";
  67.         var L_ServerLabel_Text = "Server: ";
  68.         var L_UserNameLabel_Text = "Brugernavn: ";
  69.  
  70.         var L_TooltipLoginButton_Text = "Nσr du trykker pσ denne knap, vises logondialogboksen, hvor du kan logge pσ under et andet brugernavn. Det er ofte n°dvendigt, nσr den aktuelle bruger ikke har adgang til serveren.";
  71.         var L_ToolTipEmailAddress_Text = "Dette er den e-mail-adresse, der sendes til serveren, sσ du kan identificeres, nσr du logger pσ anonymt.";
  72.         var L_TooltipPassword_Text = "Denne adgangskode og ovenstσende brugernavn anvendes, nσr du fors°ger at logge pσ serveren igen ved at klikke pσ knappen Logon.";
  73.         var L_ToolTipUserName_Text = "Skriv et andet brugernavn, og klik pσ Logon for at logge pσ som en anden bruger.";
  74.         var L_TooltipAnonCheckBox_Text = "Hvis du aktiverer dette felt og klikker pσ knappen Logon, logges du pσ serveren anonymt, hvilket serveren mσske ikke tillader. Den e-mail-adresse, du angiver nedenfor, sendes til serveren.";
  75.  
  76.         // Do not localize
  77.         var g_strUserName;
  78.         var g_strPassword;
  79.         var g_strEmailAddress;
  80.         var g_strAnonymous = "Anonymous";       // Do not localize
  81.  
  82.         function FixSize()
  83.         {
  84.             // this function handles fixed panel sizing and collapsing when the window resizes
  85.             var hideTop    = 200;
  86.             var hideLeft    = 400;
  87.             var miniHeight    = 32;
  88.             var ch  = document.body.clientHeight;
  89.             var cw  = document.body.clientWidth;
  90.  
  91.             if (hideTop > ch)
  92.             {
  93.                 document.all.Banner.style.visibility = "hidden";
  94.                 document.all.MiniBanner.style.visibility = "visible";
  95.                 document.all.FileList.style.top = miniHeight;
  96.                 document.all.Panel.style.top = miniHeight;
  97.             }
  98.             else
  99.             {
  100.                 document.all.Banner.style.visibility = "visible";
  101.                 document.all.MiniBanner.style.visibility = "hidden";
  102.                 document.all.FileList.style.top = (document.all.Banner.offsetHeight - 32) + "px";
  103.                 document.all.Panel.style.top = (document.all.Banner.offsetHeight) + "px";
  104.                 document.all.Rule.style.width = (cw > 84 ? cw - 84 : 0) + "px";  
  105.             }
  106.  
  107.             if (hideLeft > cw)
  108.             {
  109.                 document.all.Panel.style.visibility = "hidden";
  110.                 document.all.FileList.style.pixelLeft = 0;
  111.                 document.all.FileList.style.pixelTop = document.all.Panel.style.pixelTop;
  112.             }
  113.             else
  114.             {
  115.                 document.all.Panel.style.visibility = "visible";
  116.                 document.all.FileList.style.pixelLeft = document.all.Panel.style.pixelWidth;
  117.             }
  118.             document.all.FileList.style.pixelWidth = cw - document.all.FileList.style.pixelLeft;
  119.             document.all.FileList.style.pixelHeight = ch - document.all.FileList.style.pixelTop;
  120.             document.all.Panel.style.pixelHeight = ch - document.all.Panel.style.pixelTop;
  121.         }
  122.  
  123.         function Init()
  124.         {
  125.             var strMOTD;
  126.  
  127.             // call our FixSize() function whenever the window gets resized
  128.             window.onresize = FixSize;
  129.             FixSize();
  130.             Info.innerHTML = L_Intro_Text;
  131.  
  132.             InitLoginInfo();
  133.         }
  134.  
  135.         function DisplayOptions()
  136.         {
  137.             return 0;
  138.         }
  139.  
  140.         function OnMOTDDialog()
  141.         {
  142.             alert(L_MOTDDialogTitle_Text + document.all.ID_MOTD.innerText);
  143.         }
  144.  
  145.         function InitLoginInfo()
  146.         {
  147.             if (ID_FTPWebView)
  148.             {
  149.                 var L_None_Text = "None";
  150.                 strMOTD = TranslateCRs(ID_FTPWebView.MessageOfTheDay);
  151.                 ID_MOTD.innerText = strMOTD;
  152.                 ID_MOTD.style.display = ((strMOTD == "") || (strMOTD == L_None_Text)) ? "none" : "";
  153.  
  154.                 document.all.ID_Server.innerText = (L_ServerLabel_Text + ID_FTPWebView.Server);
  155.                 g_strUserName = ID_FTPWebView.UserName;
  156.  
  157.                 if (1 == ID_FTPWebView.CurrentLoginAnonymous)
  158.                     document.all.ID_StaticUserName.innerText = (L_UserNameLabel_Text + g_strAnonymous);
  159.                 else
  160.                     document.all.ID_StaticUserName.innerText = (L_UserNameLabel_Text + g_strUserName);
  161.             }
  162.         }
  163.  
  164.         function OnWebviewLinkEnter( aLink )
  165.         {
  166.             if( aLink.title )
  167.             {
  168.                 window.status = aLink.title;
  169.             }
  170.             else
  171.             {
  172.                 window.status = "";
  173.             }
  174.             return true;
  175.         }
  176.  
  177.         function OnWebviewLinkExit()
  178.         {
  179.             window.status = "";
  180.             return false;
  181.         }
  182.     </SCRIPT>
  183.  
  184.     <SCRIPT language="JavaScript" for="FileList" event="SelectionChanged">
  185.         // this script updates the left info panel when you select icons
  186.         var folder    = FileList.Folder;
  187.         var data;
  188.         var text;
  189.         var i;
  190.  
  191.         data = FileList.SelectedItems().Count;
  192.         if (data == 0)
  193.         {
  194.             // nothing selected?
  195.             Info.innerHTML = L_Intro_Text;
  196.             return;
  197.         }
  198.         else if (data > 1)
  199.         {
  200.             // more than one item selected?
  201.             text = data + L_Multiple_Text + "<br>";
  202.             if (data <= 16)
  203.             {
  204.                 for (i = 0; i < data; i++)
  205.                 {
  206.                     text += "<br>" + FileList.SelectedItems().Item(i).Name;
  207.                 }
  208.             }
  209.             Info.innerHTML = text + "<br><br>";
  210.             return;
  211.         }
  212.         else if (data == 1)
  213.         {
  214.             Info.innerHTML = "<b>" + FileList.SelectedItems().Item(0).Name + "</b><br><br>";
  215.         }
  216.     </SCRIPT>
  217.  
  218.     <script language="JavaScript" for="WVLink" event="onmouseover">
  219.         return OnWebviewLinkEnter( this );
  220.     </script>
  221.  
  222.     <script language="JavaScript" for="WVLink" event="onfocus">
  223.         return OnWebviewLinkEnter( this );
  224.     </script>
  225.  
  226.     <script language="JavaScript" for="WVLink" event="onmouseout">
  227.         return OnWebviewLinkExit();
  228.     </script>
  229.  
  230.     <script language="JavaScript" for="WVLink" event="onblur">
  231.         return OnWebviewLinkExit();
  232.     </script>
  233.     </HEAD>
  234.  
  235.     <BODY scroll=no style="background: URL(file://%TEMPLATEDIR%/wvleft.bmp) no-repeat" onload="Init()">
  236.  
  237.         <!-- start normal banner -->
  238.         <DIV id="Banner" style="visibility: hidden">
  239.             <!-- using a table with nowrap to prevent word wrapping -->
  240.             <table><tr><td nowrap>
  241.             <p class=Title style="margin-left: 104px; margin-top: 16px">
  242.             %THISDIRNAME%
  243.             </td></tr></table>
  244.             <!-- this is more efficient than a long graphic, but we have to adjust it in FixSize() -->
  245.             <hr id="Rule" size=1px color=black style="position: absolute; top: 44px; left: 84px">
  246.             <!-- this is our awesome icon extractor -->
  247.             <object id=Icon classid="clsid:e5df9d10-3b52-11d1-83e8-00a0c90dc849">
  248.             <param name="scale" value=100>
  249.             </object>
  250.         </DIV>
  251.         <!-- end normal banner -->
  252.  
  253.         <!-- start mini banner -->
  254.         <DIV id="MiniBanner" style="visibility: hidden">
  255.             <!-- using a table with nowrap to prevent word wrapping -->
  256.             <table><tr><td nowrap>
  257.             <p class=Title style="margin-left: 16px; margin-top: 4px">
  258.             %THISDIRNAME%
  259.             </td></tr></table>
  260.         </DIV>
  261.         <!-- end mini banner -->
  262.  
  263.         <!-- start left info panel -->
  264.         <DIV style="padding-left: 20px;" id="Panel">
  265.             <P class=SiteInfo id=lochack>
  266.             <SPAN ID="ID_Server"> </SPAN><BR>
  267.             <SPAN ID="ID_StaticUserName"> </SPAN>
  268.             <BR>
  269.             <BR>
  270.  
  271.             <!-- No Login DIV By Design -->
  272.             <BR>
  273.  
  274.             <DIV ID="ID_MOTD" CLASS=Message>
  275.             <!-- the message of the day will be inserted here by the script. -->
  276.             </DIV>
  277.             </P>
  278.             <BR>
  279.             <ID id=LocalizeMe> Brug 'Kopier til mappe' i menuen Filer til at hente filer og mapper til computeren.</ID>
  280.             <ID id=parseSlowly> 
  281.             <A HREF="javascript:ID_FTPWebView.InvokeHelp()" name="WVLink"> Klik her</A> for at lµse om gennemsyn af FTP-steder.<BR>
  282.             </ID>
  283.  
  284.             <BR>
  285.  
  286.             <SPAN id="Info">
  287.             </SPAN>
  288.         </DIV>
  289.         <!-- end left info panel -->
  290.  
  291.         <!-- this is the standard file list control -->
  292.         <OBJECT id="FileList" border=0 tabindex=1 classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2"
  293.         </OBJECT>
  294.  
  295.         <OBJECT id="ID_FTPWebView" border=0 tabindex=1 classid="clsid:210DA8A2-7445-11d1-91F7-006097DF5BD4"
  296.         </OBJECT>
  297.  
  298.     </BODY>
  299. </HTML>
  300.  
  301.