HTML Help
HTML Help Central . com

» Online Users: 66

0 members and 66 guests
No Members online
Most users ever online was 695, 02-16-2011 at 07:01 AM.

» Site Navigation

 > FAQ

» Domains For Sale

Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2014
    Posts
    133

    [SOLVED] Konami Code Easter Egg

    From what I can tell this might be really easy but I have no idea how to do it.

    If you dont know what a konami code is, it is:
    ↑ ↑ ↓ ↓ ← → ← → B A

    I found out some sites use this code as an easter egg and it does some cool stuff.
    Can it redirect you to a page?

    Im guessing once i have the script i can add it to any page right?

    How does a noob do this? Please and thanks.
    Last edited by NZLTruly; 01-08-2015 at 05:29 AM. Reason: SOLVED

  2. #2
    Join Date
    Mar 2014
    Posts
    133
    I FOUND WHAT I WAS LOOKING FOR!

    Code:
    <script type="text/javascript">
    if ( window.addEventListener ) {  
      var state = 0, konami = [38,38,40,40,37,39,37,39,66,65];  
      window.addEventListener("keydown", function(e) {  
        if ( e.keyCode == konami[state] ) state++;  
        else state = 0;  
        if ( state == 10 )  
          window.location = "http://nzltruly.orgfree.com/TheGif.html";
        }, true);  
    }  
    </script>

Similar Threads

  1. HTML Code Help (I posted the code inside)
    By slider_alt in forum HTML / XHTML / XML
    Replies: 2
    Last Post: 06-20-2006, 06:33 PM
  2. Happy Easter Every One!
    By -Billy- in forum Chat Central
    Replies: 7
    Last Post: 04-15-2006, 11:40 PM
  3. its not easter already is it ?
    By KC in forum Chat Central
    Replies: 5
    Last Post: 10-09-2003, 12:21 AM
  4. Happy Easter!
    By elin in forum Chat Central
    Replies: 15
    Last Post: 04-10-2002, 04:03 PM
  5. happy easter!
    By chocslayer in forum Chat Central
    Replies: 4
    Last Post: 03-31-2002, 01:29 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBadvanced CMPS v4.1.1