How to Use Konami Code On your Website

Discussion in 'Web Design, HTML And CSS' started by blitzcoder, Sep 16, 2010.

  1. blitzcoder

    blitzcoder New Member

    Joined:
    Aug 24, 2010
    Messages:
    12
    Likes Received:
    2
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Surat, India
    Home Page:
    http://shreyagarwal.blog.com
    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.

    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);  
    }  
    </script>
    Hopefully, the code is very simple to understand. Place this in your HTML file and you are good to go! :)

    Check Out Working Sample
     
    dotNet Zombie likes this.
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
  3. seoguru

    seoguru New Member

    Joined:
    Oct 6, 2010
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    http://www.seofleet.com
    if you want use Konami Code on your website you can contact any web developer (programmer)
     
  4. dotNet Zombie

    dotNet Zombie New Member

    Joined:
    Aug 28, 2010
    Messages:
    34
    Likes Received:
    10
    Trophy Points:
    0
    Occupation:
    .Net Developers
    Location:
    Minnesota
    Home Page:
    http://www.dotnetzombie.net
    Ah that brings back memories.
     
  5. seoguru

    seoguru New Member

    Joined:
    Oct 6, 2010
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    http://www.seofleet.com
    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.


    :D
     
  6. pemeet123456

    pemeet123456 New Member

    Joined:
    Oct 17, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    i my self vipin kumar srivastav,new on this forum wanna know about web development.




    thanks fro information

    -------------------------
    10
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice