Go4Expert (http://www.go4expert.com/)
-   Web Design, HTML And CSS Tutorials (http://www.go4expert.com/articles/web-design/)
-   -   How to Use Konami Code On your Website (http://www.go4expert.com/articles/konami-code-website-t23323/)

blitzcoder 16Sep2010 13:14

How to Use Konami Code On your Website
The well-appreciated and possibly most-remembered “secret” code of all time, The Konami Code, a cheat code that originated on the original NES and has since made its way into many other games.
up, up, down, down, left, right, left, right, B, A

But it is not only limited to games anymore! You can include this on your own website to make an awesome impression on the viewers.

You can see a working example (and subsequently many more) on http://www.konamicodesites.com . This site also lists many more websites which use this code. Go to the website and use the key code mentioned above to get in.

The code to include konami is very simple. Let us say I want to redirect the website to go4expert when the code is entered on any web page. All I have to do is include the following JavaScript 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://www.go4expert.com";  //you can write your own code here
    }, true); 


Hopefully, the code is very simple to understand. Place this in your HTML file and you are good to go! :)

Check Out Working Sample

shabbir 4Oct2010 10:21

Re: How to Use Konami Code On your Website
If you liked this article do nominate this article for Article of the month - Sep 2010 Before 15th of October 2010.

seoguru 6Oct2010 16:19

Re: How to Use Konami Code On your Website
if you want use Konami Code on your website you can contact any web developer (programmer)

dotNet Zombie 6Oct2010 20:45

Re: How to Use Konami Code On your Website
Ah that brings back memories.

seoguru 7Oct2010 15:41

Re: How to Use Konami Code On your Website
Googleís New WebP Image Standard Is All About SEO

One of the most important aspects of on-page SEO (Search Engine Optimization) these days is site speed (on-page SEO consists of the factors you change/implement on your Web site itself, such as changing title tags, posting content, etc.). In other words, how fast does your Web site load when someone visits it? Is it image-intensive? If so, do you extend the courtesy of letting your visitors click on a thumbnail to load a full image instead of you loading it for them? Even if you think youíre doing them a favor by resizing an image via HTML or CSS, if the full-sized image is what loads, youíre not giving your visitors the most optimal browsing experience. With that said, there have been a number of case studies that aim to show just how important Google considers your siteís load speed to be. Itís definitely a metric Google considers in regards to how they rank you in the SERPs (Search Engine Results Pages), but itís not clear just how much weight they give to this metric specifically. Well, now Google has pretty much spelled it out under no uncertain terms that they absolutely care about how fast your site loads. This means that you should, too.


pemeet123456 17Oct2010 12:12

Re: How to Use Konami Code On your Website
i my self vipin kumar srivastav,new on this forum wanna know about web development.

thanks fro information


All times are GMT +5.5. The time now is 15:55.