Valhalla Legends Archive

Programming => General Programming => Java Programming => Topic started by: Akamas on April 07, 2004, 07:22 PM

Title: Useful Script
Post by: Akamas on April 07, 2004, 07:22 PM
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.


<------ 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>


I've also included in a form, that has the text feilds and a submit button. Enjoy :D
Title: Re:Useful Script
Post by: Adron on April 07, 2004, 07:36 PM
Does that even work with the recent IE code changes to block urls with usernames in them?
Title: Re:Useful Script
Post by: Akamas on April 07, 2004, 07:39 PM
Well, I've tried it and it works on my CPU.

http://www.csintel.net/theo