← Desenvolvimento

Ftp Por Javascript, Java que abre FTP

Lida 1674 vezes

Offline

afcramalho 
Membro
Mensagens 1373 Gostos 2
Feedback +4

Troféus totais: 34
Trófeus: (Ver todos)
Level 6 Linux User Mobile User Apple User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter

A script não foi feita por mim, que pena, lol, venho apenas apresentala aqui.

http://www.radikal-rider.alojagratis.org/Scripts/scrip1.htm

Citar
<!--Script by Rocco-->
<script language=JavaScript>
<!--

function Login(form) {
var username = form.username.value;
var password = form.password.value;
var server = form.server.value;

if (username && password && server) {

var ftpsite = "ftp://" + username + ":" + password + "@" + server;

window.location = ftpsite;

}

else {

alert("Entre com seu login e senha do servidor");

  }

}

//-->
</SCRIPT>

<script language=JAVASCRIPT type=TEXT/JAVASCRIPT>

var StayAlive = 1;

function KillMe(){

setTimeout('self.close()',StayAlive * 1000);

}

</SCRIPT>

<FORM name=login>
<META content="MSHTML 6.00.2716.2200" name=GENERATOR></HEAD>
<BODY>
<TABLE cellPadding=1 width=250 border=0>
 <TBODY>
 <TR>
   <TD height=25><FONT face="arial, helvetica" size=1>Nome de Usuário:</FONT>
   </TD>
   <TD height=25><FONT face="arial, helvetica" size=1><INPUT class=Campo
     style="BORDER-TOP-STYLE: ridge; BORDER-RIGHT-STYLE: ridge; BORDER-LEFT-STYLE: ridge; BORDER-BOTTOM-STYLE: ridge"
     name=username></FONT> </TD></TR>
 <TR>
   <TD height=15><FONT face="arial, helvetica" size=1>Senha:</FONT> </TD>
   <TD height=15><FONT face="arial, helvetica" size=1><INPUT class=Campo
     style="WIDTH: 142px; BORDER-TOP-STYLE: ridge; BORDER-RIGHT-STYLE: ridge; BORDER-LEFT-STYLE: ridge; HEIGHT: 22px; BORDER-BOTTOM-STYLE: ridge"
     type=password size=19 name=password></FONT> </TD></TR>
 <TR>
   <TD height=25><FONT face="arial, helvetica" size=1>Server:</FONT> </TD>
   <TD height=25><FONT face="arial, helvetica" size=1><INPUT class=Campo
     style="BORDER-TOP-STYLE: ridge; BORDER-RIGHT-STYLE: ridge; BORDER-LEFT-STYLE: ridge; BORDER-BOTTOM-STYLE: ridge"
     name=server></FONT> </TD></TR>
 <TR>
   <TD align=middle colSpan=2 height=26><FONT
     face="verdana, arial, helvetica" size=1><INPUT class=Campo style="BORDER-TOP-STYLE: groove; BORDER-RIGHT-STYLE: groove; BORDER-LEFT-STYLE: groove; BORDER-BOTTOM-STYLE: groove" onclick=Login(this.form) type=button value=Conectar></FONT>
   </TD></TR></TBODY></TABLE></FORM>
<P>&nbsp;</P></BODY></HTML>

Offline

fpware 
Fundador
Mensagens 15318 Gostos 6
Troféus totais: 38
Trófeus: (Ver todos)
Linux User Mobile User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5

Interessante...
Offline

Pure_Water 
Membro
Mensagens 515 Gostos 0
Troféus totais: 27
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 500 Posts

hum tá giro :D

E pode vir a dar jeito na univ :P
Offline

asturmas 
Administrador
Mensagens 19734 Gostos 49
Feedback +2

Troféus totais: 39
Trófeus: (Ver todos)
Mobile User Windows User Super Combination Combination Topic Starter 100 Poll Votes 50 Poll Votes 10 Poll Votes Poll Voter Poll Starter

poiz  lol