知识库

超实用的登陆FTP网页页面代码

来源: 本站    类别: 知识库    日期: 2016/9/1

 

<script janguage="javascript">
<!--
// Title: JavaScript - FTP log-on script

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" bgcolor="#000000" align="center">
<tr>
<td>
<table border="0" cellspacing=0 cellpadding=5 align="center">
<tr bgcolor="#bbbbbb">
<td width="75" align="right">
<font face="arial,helvetica" size="-1">
Ftp://
</font>
</td>
<td>
<font face="arial,helvetica" size="-1">
<input type="text" size=15 name="url">
</font>
</td>
</tr>
<tr bgcolor="#dddddd">
<td align="right">
<font face="arial,helvetica" size="-1">
Login:
</font>
</td>
<td>
<font face="arial,helvetica" size="-1">
<input type="text" size="15" name="login" maxlength="20">
</font>
</td>
</tr>
<tr bgcolor="#bbbbbb">
<td align="right">
<font face="arial,helvetica" size="-1">
Password:
</font>
</td>
<td>
<font face="arial,helvetica" size="-1">
<input type="password" size="15" name="password" maxlength="20">
</font></td>
</tr>
<tr bgcolor="#ffffff">
<td colspan="2" align="center">
<font face="arial,helvetica" size="-2">
<input type=button onclick="goFtpSite();" value="LOG-IN">
<input type=reset value="CLEAR">
</font>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>


相关文章


Copyright © 2004 - 2024 CNHWW Inc. All Rights Reserved
石家庄市征红网络科技有限公司版权所有 邮政编码:050051
服务电话:0311-85315152 13931185013 在线客服QQ:81447932 / 81447933 邮箱: cnhww@163.com