Donate to us via Paypal!
Never in the field of human conflict was so much owed by so many to so few. - Winston Churchill
Friday, October 30, 2020
Navigation
Home
 Find:
 Information:
Learn
Communicate
Submit
Shop
Challenges
 Exploit:
 Programming:
 Think:
 Track:
 Patch:
 Other:
 Need Help?
Other
Members Online
Total Online: 99
Guests Online: 95
Members Online: 4

Registered Members: 129509
Newest Member: NeoinSingh1247
Latest Articles

View Thread

HellBound Hackers | Computer General | Web hacking

Author

help in javascript


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 01-01-07 13:30
can someone please explain to me what this piece of code does?
------------------
<script>
function handleReg() {location.href="http://friends.walla.com/?w=/@en.signup&vars="+vars;}
var acookie=document.cookie.split(";");
function GetCookie(name) {var i,cc,cv="",p; for (i=0;(i<acookie.length);i++) {cc=acookie[i].split("=");if ((p=cc[0].lastIndexOf(" "))>=0) cc[0]=cc[0].substring(p+1);if (name==cc[0]) cv=cc[1];} return(cv);}
var vars=location.search.substring(1).split("&").join(",");
var nick=GetCookie("nick");
var K=GetCookie("K");
document.mainform.username.value=GetCookie("nick");
document.mainform.username.focus();
if (nick!="") if (K!="") {document.all("gSignIn").style.display="none";document.all("gSignOut").style.display="block"; document.all("gCurNick").innerText=nick;}
</script>
-----------------
thank you :D
im still learning js, so as for now im rather noobie at it ;)




Edited by on 01-01-07 13:32
Author

RE: help in javascript

Uber0n
Member



Posts: 1963
Location: Sweden‭‮
Joined: 13.06.06
Rank:
Hacker Level 3
Posted on 01-01-07 14:19
Well it manipulates your cookies at friends.walla.com Grin

Nah seriously, I don't really know since I don't know what all the cookie values stand for... Pfft


img230.imageshack.us/img230/724/uber0nsig3hj6.gif
http://uber0n.web. . .
Nope http://uber0n.webs.com/