Afficher un message
Vieux 11/06/2007, 23h23   #21 (permalink)
Profil
jack
Technic'Admin
Ancienneté  79%
Ancienneté 79%
 
Avatar de jack
 
Date d'inscription: mai 2006
Localisation: LV-426
Âge: 37
Pays :
Messages: 17 179
Téléchargements: 4
Uploads: 0
Merci: 7
Remercié 407 fois dans 358 Posts
Par défaut

Code:
</style>
<script type="text/javascript">
<!--
var magicsymbol = 0;
var commonsymbol = 0;
var innertext = '';
var symbols = new Array('A','C','D','F','G','H','J','K','M','P','R','S','T','W','X','Z','#','^','_','[',']','{','}','&sect;','&copy;','&reg;','€','&pound;','&yen;','&aelig;','&Oslash;','&para;','Œ','&szlig;');
function makeSymbolTable() {
	magicsymbol = Math.round(Math.random()*33);
	innertext = '<table id="symboltable" style="width: 575px; margin: 0 auto; border: 0;">';
	for (var i = 0; i < 100; i++) {
		if ((i + 1)%10 == 1) {
			innertext += '<tr>';
		}
		commonsymbol = Math.round(Math.random()*33);
		if (i%9 == 0 && i < 89) {
			commonsymbol = magicsymbol;
		}
		innertext += '<td>&nbsp;&nbsp;'+i+'</td><td class="symbol">'+symbols[commonsymbol]+'&nbsp;&nbsp;</td>';
		if ((i + 1)%10 == 0) {
			innertext += '</tr>';
		}
	}
	innertext += '</table>';
	document.getElementById('symboltablecontener').innerHTML = innertext;
	document.getElementById('button').innerHTML = '';
}
function showAnswer() {
	document.getElementById('button').innerHTML = symbols[magicsymbol];
	document.getElementById('symboltablecontener').innerHTML = '<a href="#" onclick="javascript:makeSymbolTable(); return(false);" style="font-family: Arial, sans-serif; font-weight: bold; color: #C63;">Réessayer</a>';
}
-->
</script>
Voici le Code (javascript) permettant ce tour de passe passe ... il est contenu dans le code source de cette page

C'est le premier truc que j'ai été voir ...

En gros le principe c'est que quelque soit le chiffre que tu choisisse, si tu fait l'operation de soustraction qu'ils te dicte, tu tombera forcement sur un chiffre multiple de 9. Et tu aura remarqué que chaque chiffre multiple de 9 ont toujours le même caractère assignés ...
__________________
Hello IT ... Have you tried to turn it off and on again ? ... The button on the side, is it glowing ? ... Yeah you need to turn it on ! ... The button turns it on ? ... You DO know how a button works don't you ! ?

Dernière modification par jack ; 11/06/2007 à 23h25.
jack est déconnecté   Réponse avec citation