Results 1 to 1 of 1

Thread: Javascript Help

  1. #1
    Join Date
    Apr 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Javascript Help

    Iam trying to grab coded Info from The URL

    Then Decode It and Write the info On the page

    This Is What I have so for I have tryed but cant figer it out


    I need this
    ?my=9381788086899378748641987481888823768886&myvalue=93787798798598418188938674828523768886

    To decode In to
    ?my=Thegmpteam@yahoo.com&myvalue=tedyfly@hotmail.com



    <script language=javascript>

    //?my=6181788086899378748641987481888823768886&myvalue=61817880868993787486419874818888237688
    var O = (get("myvalue"));
    var N = (get("my"));

    function get(name)
    {
    name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
    var regexS = "[\\?&]"+name+"=([^&#]*)";
    var regex = new RegExp( regexS );
    var results = regex.exec( window.location.href );
    if( results == null ) return "";
    else return results[1];
    }


    var str_in;
    var str_out = "";
    var num_in;
    var num_out = 'N';
    var e = "Enter Text!";
    var U = 'str_out';


    function Decoder(info) {
    num_out = info
    for(i = 0; i < num_out.length; i += 2) {
    num_in = parseInt(num_out.substr(i,[2])) + 23;

    num_in = unescape('%' + num_in.toString(16));

    str_out += num_in;
    }

    }


    setTimeout('Decoder(N)',0);

    document.write('<center><span style="width: 700; height: 1; font-size: 20px; font-family: Comic Sans MS; color:Lime; filter: glow(color=blue, strength=100)">');

    document.write(U);
    document.write("<P>");
    alert(N);
    document.write(O);
    alert(O);
    </SCRIPT>
    Last edited by tedyfly; 04-17-2009 at 04:29 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •