Click to See Complete Forum and Search --> : i need help customizing a login script


ratmfan36
11-02-2003, 09:43 AM
Im very new to this, and i do not know where to customize in the script. Can someone help?
<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Based on FTP log in by: Reinout Verkerk -->
<!-- Original: Gordon Hudson (sales@hostroute.com) -->
<!-- Web Site: http://www.hostroute.com/ -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function Login(form) {
var username = form.username.value;
var password = form.password.value;
var server = form.server.value;
if (username && password && server) {
var htsite = "http://" + username + ":" + password + "@" + server;
window.location = htsite;
}
else {
alert("Please enter your username and password.");
}
}
// End -->
</script>

</HEAD>



<BODY>

<!-- The hidden form field "server" needs to be the
address of your password protected directory. -->

<form name=login>
<input type="hidden" name="server" value="www.domain.com/secure/">
Username:
<input type=text name=username size=20>
<br><br>
Password:
<input type=password name=password size=20>
<input type=button value="Login!" onClick="Login(this.form)" name="button">
</form>

<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 1.58 KB -->

smartguybot576
11-02-2003, 01:54 PM
ya same here.

demo
11-02-2003, 02:26 PM
what do you want to do?

smartguybot576
11-02-2003, 02:31 PM
well i want to be able to use that script on my webpage, and have no idea what it means, or what to do with it.