How to add Konami Code to website
Facebook has it. ESPN has it. Digg has it. Putting Konami Secret Code on your site make it fun for your visitors. I wonder what would happen if you entered the Konami Code right now?
The Konami Secret Code
In case you don't know, the Konami Code is:
Up, Up, Down, Down, Left, Right, Left, Right, B, A, Start
( ↑ ↑ ↓ ↓ ← → ← → B A )
For our purposes, we've replaced Start with Enter.
The Konami JavaScript Code
The code is being hosted over at Google Code where you can download the examples and original source:
http://code.google.com/p/konami-js/
The beauty of hosting it there is you can just copy and paste the examples below. No need to download anything.
Simplest Konami Codes Example
The most basic example takes the user to my Photo blog when they enter the code correctly. Just add this in the :
The default behavior is to redirect the browser to whatever web address is passed to konami.load()
For more Konami Codes samples, visit SnapTortoise Konami JS samples.
Related posts:
* Konami Secret Code Illustrates That Facebook Is Not Safe

















0 comments:
Post a Comment