This shows you the differences between two versions of the page.
— |
winnercode [2013/02/04 10:52] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Selecting a monthly winner. ====== | ||
+ | A brief explanation of the selection process. | ||
+ | Each participant is alotted a number when they enter the competition, | ||
+ | Nobody entering the competition knows the number they are alotted when they enter, so they will gain nothing from trying to hack into and tweak the code here as the two systems are completely separate and have no relation to each other what so ever. | ||
+ | |||
+ | The selection process works simply by me entering the total number of participants - Then I click the on screen button and hey presto the webpage and the computer I am on generate the monthly winner for me. | ||
+ | |||
+ | < | ||
+ | Example code in case you wish to create a similar draw: (Shown example 4 contestants i.e. 25% chance to win) | ||
+ | < | ||
+ | < | ||
+ | </BR> | ||
+ | <button onclick=" | ||
+ | < | ||
+ | function myFunction() | ||
+ | { | ||
+ | document.getElementById(" | ||
+ | } | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | ----- | ||
+ | <fs xx-large> | ||
+ | < | ||
+ | </BR> | ||
+ | < | ||
+ | < | ||
+ | </BR> | ||
+ | <button onclick=" | ||
+ | < | ||
+ | function myFunction() | ||
+ | { | ||
+ | document.getElementById(" | ||
+ | } | ||
+ | </ | ||
+ | </ | ||
+ | </ |