QUB1
April 18, 2024, 03:35:32 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Gallery Staff List Login Register  

[CODE] The Secret Menu

Pages: [1]
  Print  
Author Topic: [CODE] The Secret Menu  (Read 719 times)
Qub1
Administrator
Newbie
*****

Rate: +0/-1
Posts: 13


View Profile
« on: February 25, 2009, 12:53:26 pm »

Get a secret popup menu when typing the secret word.

A live preview is available on every page of this forum, just type alakazaam and the popup will open (try it, just type the word).

Add the following code to your headers:
Code:
<script language="JavaScript">
<!-- The Secret Menu -->
<!-- This script is made by Qub1. Find more scripts like this at http://qub1.smfforfree.com/ -->
var nav=navigator.appName;
var ns=(nav.indexOf("Netscape")!=-1);

if(ns){
if(document.layers){
document.captureEvents(Event.KEYPRESS);
document.onkeypress = cheat;
}
if(document.getElementById){
document.onkeypress = cheat;
}
}
else
{document.onkeypress = cheat;}

var SpecialWord = "YOUR SECRET SPECIAL WORD HERE";
var SpecialLetter = 0;
var vcheat = false
function cheat(keyStroke)
{
 var eventChooser = (ns)?keyStroke.which: event.keyCode;
 var which = String.fromCharCode(eventChooser).toLowerCase();
 if(which == SpecialWord.charAt(SpecialLetter)){
   SpecialLetter++;
   if (SpecialLetter == SpecialWord.length) alert("YOUR SECRET POPUP TEXT HERE")
}
else {SpecialLetter = 0;vcheat = false}

}
</script>

There are some parts you need to edit of this code:
Replace the YOUR SECRET SPECIAL WORD HERE text with your secret word or phrase. This can be found in:
Code:
var SpecialWord = "YOUR SECRET SPECIAL WORD HERE";
And replace the YOUR SECRET POPUP TEXT HERE text with the secret text for your popup. This can be found in:
Code:
   if (SpecialLetter == SpecialWord.length) alert("YOUR SECRET POPUP TEXT HERE")

Any questions, i'm always ready to help =D.
« Last Edit: March 16, 2009, 09:51:15 am by Qub1 » Report Spam   Logged

Share on Facebook Share on Twitter

Didds
Newbie
*

Rate: +0/-0
Posts: 1


View Profile
« Reply #1 on: March 14, 2009, 04:34:57 am »

Great idea! But I'm typing it and nothing happens  Undecided
Report Spam   Logged
Qub1
Administrator
Newbie
*****

Rate: +0/-1
Posts: 13


View Profile
« Reply #2 on: March 16, 2009, 09:28:42 am »

Oh, yeah i got a prob with my footers, fixing it now...  Undecided
Report Spam   Logged


Pages: [1]
  Print  
 
Jump to: