Menu

홈페이지에 FTP 폼 넣기

2016. 6. 2. 10:03

안개핑 Javascript

 

 

1) head와 head 사이에 이걸 넣는다.
< script janguage="javascript">
function goFtpSite() {
document.location.href = "ftp://" + document.ftp.login.value + ":" + document.ftp.password.value + "@" + document.ftp.url.value;
}
< /script>


2)FTP로그인을 넣을 곳에 넣는다.
< form name="ftp">
< table border="0" cellpadding="1" cellspacing="1" align="center">
< tr><td><p align="right">
FTP <input type="text" size=12 name="url"><br>
ID <input type="text" size="12" name="login"><br>
Pass <input type="password" size="12" name="password"><br>
< input type=button onclick="goFtpSite();" value="LOG-IN">
< input type=reset value="CLEAR"></tr></table></form>

출처 :: http://www.nzeo.com/bbs/zboard.php?id=p_javascript&page=2&sn1=&divpage=1&sn=off&ss=on&sc=off&select_arrange=headnum&desc=asc&no=464