www.webdeveloper.com
Results 1 to 2 of 2

Thread: Konami code problems with IE

  1. #1
    Join Date
    Apr 2011
    Posts
    19

    Konami code problems with IE

    Hi i put the konami code on my site and it works in Chrome and Firefox but not IE any ideas ?

    thanks

    Code:
    <body bgcolor="#000000">
    <br /><br />
    
    <h1 class="h1maggots"> FISH NORTH WEST</h1>
    <br />
     <p class="konami">Perform The <a id="konami_code" href="http://contact.html" onclick="window.open(this.href); return false;">Code</a> To Access Members Area
    </p> 
    <br /><br />
    
                      
                         <img src="file:///C|/Documents and Settings/s00103684.CAMPUS/My Documents/maggots.jpg" align="absmiddle" class="imgmaggots" />
    
    <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.palmeroni.com";  //you can write your own code here
        }, true);  
    }  
    </script>
    
    </body>

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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
  •  
HTML5 Development Center



Recent Articles