Valhalla Legends Forums Archive | Java Programming | Useful Script

AuthorMessageTime
KoRRuPT
Hey, I just made this script, I don't know if its been posted before but I think most people would like to use it.

[code]
<------ THE SCRIPT ------>

<script>
function dologin(){
   
   document.location = 'http://' + document.loginfrm.username.value + ':' + document.loginfrm.password.value + '@www.yourwebsite.com/private';
}
</script>


<------ THE FORM ------>

<form method="POST" name="loginfrm">
<p><img src="username.gif"> <input type="text" name="username" size="20"class=textbox><br><img src="password.gif"> <input type="password" name="password" size="20" class=textbox><br><br>
<a href="javascript:dologin();" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','LOGIN IMAGE BUTTON HOVER',1)"><img src="LOGIN BUTTON IMAGE" name="Image1" border="0"></a>
</form>
[/code]

I've also included in a form, that has the text feilds and a submit button. Enjoy :D
April 8, 2004, 12:22 AM
Adron
Does that even work with the recent IE code changes to block urls with usernames in them?
April 8, 2004, 12:36 AM
KoRRuPT
Well, I've tried it and it works on my CPU.

http://www.csintel.net/theo
April 8, 2004, 12:39 AM

Search