Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 19-02-2007, 05:02 PM   #1 (permalink)
~[::BOoYaKa::]~
 
Join Date: May 2005
Location: In a Cave.
Posts: 575
Default Javascript Help


Can nayone tell me what does this javascript code do...
Code:
<script language="JavaScript">

function passwd()
{
var x="a" + "k";
var base = "Fqc";
var code="";
var end = "";
for (var z=0;z<base.length;z++)
{
code=code+String.fromCharCode(base.charCodeAt(z)+z);
}
end = code + x;
if(document.check.passwort.value==code)
{
document.write("Access Granted, please type it in and press submit.");
}
else
{
document.write("Access Denied.");
}

}
</script>
Thanx.
__________________
[::Eddie n Benoit Live Forever::]

Last edited by REY619; 19-02-2007 at 05:08 PM.
REY619 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 20-02-2007, 07:24 AM   #2 (permalink)
eWebGuru
 
ahref's Avatar
 
Join Date: Mar 2006
Location: Dehradun
Posts: 427
Default Re: Javascript Help

this code check the password entered and validate whether it is correct or not. If correct write on browser Access Granted, please type it in and press submit
if wrong write on browser Access Denied.

You can find what the password is through above code easily.
__________________
Windows and linux hosting at http://www.ewebguru.com
Get $50 per blog post PM me for details.
ahref is offline  
Old 20-02-2007, 04:45 PM   #3 (permalink)
~[::BOoYaKa::]~
 
Join Date: May 2005
Location: In a Cave.
Posts: 575
Default Re: Javascript Help

lol thats the reason why i posted it. I am unable to find the password...
__________________
[::Eddie n Benoit Live Forever::]
REY619 is offline  
Old 20-02-2007, 09:23 PM   #4 (permalink)
eWebGuru
 
ahref's Avatar
 
Join Date: Mar 2006
Location: Dehradun
Posts: 427
Default Re: Javascript Help

The password is Fre
__________________
Windows and linux hosting at http://www.ewebguru.com
Get $50 per blog post PM me for details.
ahref is offline  
Old 21-02-2007, 08:09 PM   #5 (permalink)
~[::BOoYaKa::]~
 
Join Date: May 2005
Location: In a Cave.
Posts: 575
Default Re: Javascript Help

Thanx
__________________
[::Eddie n Benoit Live Forever::]
REY619 is offline  
Old 21-02-2007, 09:31 PM   #6 (permalink)
In The Zone
 
ApoorvKhatreja's Avatar
 
Join Date: Aug 2006
Location: Delhi
Posts: 229
Default Re: Javascript Help

The password is Fre. It will grant you access on entering it.
__________________
http://apoorvkhatreja.blogspot.com
ApoorvKhatreja is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Piyush
- by icebags
- by clinton
- by Charan

Advertisement




All times are GMT +5.5. The time now is 12:00 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2