联系我们

地址:黑龙江省哈尔滨市南岗区文库街16号智力大厦208室
邮编:150040
业务咨询办理:
——座机:0451-89060603
——手机:013945010420
电话总机:0451-86230075 86230073
传真:拨通总机转608
网站教学 QQ:499485031
网站教学 QQ:498760590
业务咨询 QQ:470030788
[ MSN:ourservice@hotmail.com ]

文章内容
在页面内登录FTP
2008年03月28日 08:40    点击数:         
打印本页 收藏 关闭 【字号
导读:

说明:

用IE登录FTP服务器。 

效果:

Ftp://
UserName:
Password:

代码:

<script janguage="javascript">
<!--
function goFtpSite() {
document.location.href = "ftp://" + document.ftp.login.value + ":" + document.ftp.password.value + "@" + document.ftp.url.value;
}

//-->
</script>
      <form name="ftp">
        <table border="0" cellpadding="1" cellspacing="1"  align="center" width="304">
          <tr>
            <td width="296">
              <table border="0" cellspacing=0 cellpadding=5 align="center" width="292">
                <tr bgcolor="#b5e1ff">
                  <td width="75" align="right"> <font face="arial,helvetica" size="-1" color="#008080">
                    Ftp:// </font> </td>
                  <td width="193"> <font face="arial,helvetica" size="-1">
                    <input type="text" size=30 name="url" style="border: 1 solid #0099FF">
                    </font> </td>
                </tr>
                <tr bgcolor="#ddf1ff">
                  <td align="right" width="75"> <font face="arial,helvetica" size="-1" color="#008080">UserName:
                    </font> </td>
                  <td width="193"> <font face="arial,helvetica" size="-1">
                    <input type="text" size="15" name="login" maxlength="20" style="border: 1 solid #0099FF">
                    </font> </td>
                </tr>
                <tr bgcolor="#b5e1ff">
                  <td align="right" width="75"> <font face="arial,helvetica" size="-1" color="#008080">
                    Password: </font> </td>
                  <td width="193"> <font face="arial,helvetica" size="-1">
                    <input type="password" size="15" name="password" maxlength="20" style="border: 1 solid #0099FF">
                    </font></td>
                </tr>
                <tr bgcolor="#ddf1ff">
                  <td colspan="2" align="center" width="280"> <font face="arial,helvetica" size="-2">
                    <input type=button onclick="goFtpSite();" value="登录" style="background-color: #0099FF; color: #FFFFFF; border: 1 solid #0099FF">
                      
                    <input type=reset value="重写" style="color: #FFFFFF; background-color: #0099FF; border: 1 solid #0099FF">
                    </font> </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </form>



Copyright © 2000 - 2011┊Sumly Soft, All Rights Reserved┊三雷科技 版权所有┊Email:harbin@126.com┊公司简介

地址:黑龙江省哈尔滨市南岗区文库街16号智力大厦208室┊邮编:150040

业务咨询办理:0451-89060603、013945010420┊电话总机:0451-86230075 86230073┊传真:拨通总机转608

[网站教学 QQ:499485031┊网站教学498760590┊业务咨询470030788]┊[ MSN:ourservice@hotmail.com ]

黑B2-20040341

全球最专业的多语言大型商业社区系统 - 三雷软件
本商业网站系统由哈尔滨三雷科技有限公司开发提供
powered by sumly! cms 6.0.0 © 2000 - 2008 30t.com inc.
the most professional multilanguage commercial community developer - sumly