home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1999 October / VPR9910A.BIN / MSIE_50 / IE_EXTRA.cab / msieftp.dll / HTML / FTPNT5.HTT < prev   
Text File  |  1999-04-01  |  10KB  |  274 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        {margin: 0; font: menu; color: black}
  10.         #Panel      {position: absolute; width: 200px; height: 100%; visibility: hidden; overflow: auto}
  11.         #Corner     {padding-left: 12px; padding-top: 11px}
  12.         #FolderIcon {width: 32px; height: 32px}
  13.         #FolderName {margin-top: 8px; font: 13pt/13pt; font-weight: bold}
  14.         #LogoLine   {width: 100%; margin-top: 4px; vertical-align: top}
  15.         #Details    {padding-left: 12px; margin-top: 8px}
  16.         #Locked     {vertical-align: baseline}
  17.         #Preview    {}
  18.         .Movie      {width: 10px; height: 136px}
  19.         .Sound      {width: 120px; height: 46px}
  20.         #Thumbnail  {width: 120px; height: 120px}
  21.         .Legend     {margin-left: 12px; margin-right: -12px}
  22.         #PieChart   {width: 120px; height: 60px; margin-top: 10px}
  23.         #FileList   {position: absolute; left: 200px; width: 100%; height: 100%; tabIndex: 1}
  24.         p           {margin-top: 12px}
  25.         p.Half      {margin-top: 6px}
  26.         button      {font: 9pt MS Pゴシック; margin-left: 12px; background: white; color: black}
  27.         input       {font: 9pt MS Pゴシック}
  28.     .Message        {margin: -4px; margin-right: 0; padding: 3px; background: infobackground; border: 1px solid lightgrey}
  29.         .accesskey  {}
  30.     </STYLE>
  31.  
  32.     <HEAD>
  33. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=shift_jis">
  34.     <!-- allow references to any resources you might add to the folder -->
  35.     <BASE href="%THISDIRPATH%\">
  36.  
  37.     <SCRIPT LANGUAGE="vbscript">
  38.         Const g_nCR = 13
  39.         Const g_nLF = 10
  40.  
  41.         Function TranslateCRs(strIn)
  42.         Dim strOut
  43.         strOut = ""
  44.  
  45.         While 0 < Len(strIn)
  46.             if Asc(strIn) = g_nCR then
  47.                 strIn = strIn & " "
  48.                 strIn = Right(strIn, Len(strIn) - 1)
  49.             else
  50.                 strOut = strOut & Chr(Asc(strIn))
  51.             end if
  52.  
  53.             strIn = Right(strIn, Len(strIn) - 1)
  54.         Wend
  55.  
  56.         TranslateCRs = strOut
  57.         end Function
  58.     </SCRIPT>
  59.  
  60.     <SCRIPT LANGUAGE="JavaScript">
  61.         // To localize
  62.         var L_Intro_Text    = "";
  63.         var L_Multiple_Text    = " 個のオブジェクトを選択しました。";
  64.         var L_AnonymousUserName_Text = "匿名";
  65.         var L_MOTDDialogTitle_Text = "サーバーの使用について、次のメッセージが提供されました:\n\n";
  66.  
  67.         var L_TooltipLoginButton_Text = "このボタンをクリックすると、別のユーザー名でログインするための [ログイン] ダイアログ ボックスが表示されます。これは、現在のユーザー名でサーバーにアクセスしたくないときなど、頻繁に必要となります。";
  68.         var L_ToolTipEmailAddress_Text = "これは、匿名によるログインをサーバーに認識させるために提供する電子メール アドレスです。";
  69.         var L_TooltipPassword_Text = "[ログイン] をクリックすると、このパスワードとユーザー名が、サーバーに再ログインするのに使用されます。";
  70.         var L_ToolTipUserName_Text = "異なるユーザー名を入力し、[ログイン] をクリックして、別のユーザーでログインしてください。";
  71.         var L_TooltipAnonCheckBox_Text = "ここをオンにして [ログイン] をクリックすると、サーバーの許可に関係なく、匿名でサーバーにログインできます。次に指定する電子メール アドレスがサーバーに渡されます。";
  72.  
  73.         // Do not localize
  74.         var g_strUserName;
  75.         var g_strPassword;
  76.         var g_strEmailAddress;
  77.         var g_fAnonymousLogin;
  78.         var g_fDelayedLoginInfoInited = 0;
  79.         var g_strAnonymous = "Anonymous";       // Do not localize
  80.  
  81.         function Resize() {
  82.             if (document.body.clientWidth < Panel.style.pixelWidth * 2) {
  83.                 Panel.style.visibility = "hidden";
  84.                 FileList.style.pixelLeft = 0;
  85.             } else {
  86.                 Panel.style.visibility = "visible";
  87.                 FileList.style.pixelLeft = Panel.style.pixelWidth;
  88.             }
  89.             FileList.style.pixelWidth = document.body.clientWidth - FileList.style.pixelLeft;
  90.         }
  91.  
  92.         function Initialize()
  93.         {
  94.             var strMOTD;
  95.  
  96.             // call our Resize() function whenever the window gets resized
  97.             window.onresize = Resize;
  98.             Resize();
  99.             Info.innerHTML = L_Intro_Text;
  100.  
  101.             InitLoginInfo();
  102.             if (1 == DisplayOptions())
  103.                 ToggleOptionsAvailablility();
  104.  
  105.             // fix styles
  106.             var L_SystemFont1_Text = "MS UI Gothic";
  107.             var L_SystemFont2_Text = "MS Pゴシック";
  108.             var L_SystemFont_Text = "MS Pゴシック";
  109.             var tr = document.body.createTextRange();
  110.             if (navigator.cpuClass != "Alpha") {
  111.                 tr.collapse();
  112.                 var actualFont = tr.queryCommandValue("FontName");
  113.                 if (actualFont == L_SystemFont1_Text || actualFont == L_SystemFont2_Text)
  114.                     document.body.style.fontFamily = L_SystemFont_Text;
  115.             } else
  116.                 document.body.style.fontFamily = L_SystemFont_Text;
  117.  
  118.             // set focus on the icons
  119.             hack = window.setTimeout("FileList.focus()", 0);
  120.             hack = null;
  121.         }
  122.  
  123.         function DisplayOptions()
  124.         {
  125.             // TODO: Check the cookie to see if the user wants to see the options
  126.             //     be default. We also need to save the cookie on unload.
  127.             return 0;
  128.         }
  129.  
  130.         function OnMOTDDialog()
  131.         {
  132.             alert(L_MOTDDialogTitle_Text + document.all.ID_MOTD.innerText);
  133.         }
  134.  
  135.         function ToggleOptionsAvailablility()
  136.         {
  137.         }
  138.  
  139.         function InitLoginInfo()
  140.         {
  141.             if (ID_FTPWebView)
  142.             {
  143.         var L_None_Text = "なし";
  144.                 strMOTD = TranslateCRs(ID_FTPWebView.MessageOfTheDay);
  145. //strMOTD = "This is a test of the emergency broadcasting system.";
  146.                    ID_MOTD.innerText = strMOTD;
  147.         ID_MOTD.style.display = ((strMOTD == "") || (strMOTD == L_None_Text)) ? "none" : "";
  148.  
  149.                 document.all.ID_Server.innerText = ID_FTPWebView.Server;
  150.                 g_strUserName = ID_FTPWebView.UserName;
  151.                 g_fAnonymousLogin = ID_FTPWebView.CurrentLoginAnonymous;
  152.  
  153.                 if (1 == g_fAnonymousLogin)
  154.                     document.all.ID_StaticUserName.innerText = g_strAnonymous;
  155.                 else
  156.                     document.all.ID_StaticUserName.innerText = g_strUserName;
  157.             }
  158.         }
  159.  
  160.         function InitDelayedLoginInfo()
  161.         {
  162.             g_fDelayedLoginInfoInited = 1;
  163.  
  164.             if (null != ID_FTPWebView)
  165.             {
  166.                 g_strPassword = ID_FTPWebView.Password;
  167.                 g_strEmailAddress = ID_FTPWebView.EmailAddress;
  168.  
  169.                 OnAnonymouseChange();
  170.                 OnUserNameChange();
  171.             }
  172.         }
  173.  
  174.         function EnableDisableLoginButton()
  175.         {
  176.         }
  177.  
  178.         function OnAnonymouseChange()
  179.         {
  180.         }
  181.  
  182.         function OnUserNameChange()
  183.         {
  184.         }
  185.  
  186.         function OnEmailAddressChange()
  187.         {
  188.         }
  189.  
  190.         function DisplayLoginDialog()
  191.         {
  192.         }
  193.     </SCRIPT>
  194.  
  195.     <SCRIPT language="JavaScript" for="FileList" event="SelectionChanged">
  196.         // this script updates the left info panel when you select icons
  197.         var item    = FileList.FocusedItem;
  198.         var folder    = FileList.Folder;
  199.         var data;
  200.     var text;
  201.         var i;
  202.  
  203.         data = FileList.SelectedItems().Count;
  204.         if (data == 0)
  205.         {
  206.             // nothing selected?
  207.             Info.innerHTML = L_Intro_Text;
  208.             return;
  209.         }
  210.         else if (data > 1)
  211.         {
  212.             // more than one item selected?
  213.             text = data + L_Multiple_Text + "<br>";
  214.         if (data <= 16)
  215.                     for (i = 0; i < data; i++)
  216.                         text += "<br>" + FileList.SelectedItems().Item(i).Name;
  217.             Info.innerHTML = text + "<br><br>";
  218.             return;
  219.         }
  220.  
  221.         Info.innerHTML = "<b>" + item.Name + "</b><br><br>";
  222.     </SCRIPT>
  223.  
  224.     <script language="JavaScript">
  225.         function Load() {
  226.             Initialize();
  227.             Resize();
  228.         }
  229.     </script>
  230.     </HEAD>
  231.  
  232.     <body scroll=no onload=Load()>
  233.         <div id=Panel style="background: white URL(file://%TEMPLATEDIR%/wvleft.bmp) no-repeat">
  234.             <div id=Corner>
  235.                 <object id=FolderIcon classid="clsid:E5DF9D10-3B52-11D1-83E8-00A0C90DC849" width=32 height=32>
  236.                     <param name="scale" value=100>
  237.                 </object>
  238.                 <br>
  239.                 <div id=FolderName>
  240.                     %THISDIRNAME%
  241.                 </div>
  242.             </div>
  243.             <img id=LogoLine src="%TEMPLATEDIR%\wvline.gif">
  244.             <div id=Details>
  245.  
  246.             サーバー: <SPAN ID="ID_Server"> </SPAN><BR>
  247.             <LABEL FOR=ID_StaticUserName id=lochack0> ユーザー名: <SPAN ID="ID_StaticUserName"> </SPAN> </LABEL>
  248.             <BR>
  249.             <BR>
  250.             <ID id=lochack9>
  251.  
  252.             <BR>
  253.  
  254.             <DIV ID="ID_MOTD" CLASS=Message>
  255.             <!-- the message of the day will be inserted here by the script. -->
  256.             </DIV>
  257.             <BR>
  258.             <A HREF="javascript:ID_FTPWebView.InvokeHelp()"> Click here</A> for hints on using FTP.<BR>
  259.  
  260.             </P>
  261.                 <span id=Info>
  262.                 </span>
  263.             </div>
  264.         </div>
  265.         <object id=FileList tabindex=1 border=0 classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2">
  266.         </object>
  267.  
  268.         <OBJECT id="ID_FTPWebView" border=0 tabindex=1 classid="clsid:210DA8A2-7445-11d1-91F7-006097DF5BD4"
  269.         </OBJECT>
  270.  
  271.     </BODY>
  272. </HTML>
  273.  
  274.