\n'
document.write(temp);
var alphabet="abcdefghijklmnopqrstuvwxyz"
mots = new Array();
// nbmot = DEFINIT LE NOMBRE DE MOTS DU DICTIONNAIRE !!!
nbmot= 14;
lgmot= 0;
motde= 0;
nbtro= 0;
oktro= 0;
nberr= 0;
rien = ""
// ATTENTION LONGUEUR MAXIMALE DES MOTS = 12
mots[ 1]="METHANE";
mots[ 2]="DIOXYGENE";
mots[ 3]="DIAZOTE";
mots[ 4]="LAVOISIER";
mots[ 5]="STRATOSPHERE";
mots[ 6]="BUNSEN";
mots[ 7]="POLLUTION";
mots[ 8]="COMBURANT";
mots[ 9]="COMBUSTIBLE";
mots[10]="MAZOUT";
mots[11]="KRYPTON";
mots[12]="OZONE";
mots[13]="ARGON";
mots[14]="XENON";
var timerID=0;
function hangman_DoFSCommand(cmd, arg)
{
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
var map = InternetExplorer ? hangman : document.embeds[0];
if (cmd=="start")
{
rien="";
nom="_flash0/gogo";
map.TGotoLabel(nom,"go0");
nom="_flash0/choix";
map.TGotoLabel(nom,"debut");
nberr=0;
nbtro=0;
for(x=1;x<27;x++)
{
nom='_flash0/a'+x;
map.TGotoLabel(nom,alphabet.charAt(x-1));
if(InternetExplorer)
{
map.Tplay(nom);
}
}
motde=Math.round(Math.random()*nbmot)+1;
lgmot=mots[motde].length;
for(y=0;y<12;y++)
{
nom='_flash0/l'+eval(y)
if(y>=lgmot)
{
lett='vide';
}
else
{
lett='bl';
}
map.TGotoLabel(nom,lett);
if(InternetExplorer)
{
map.Tplay(nom);
}
}
}
if (cmd=="lettre" && nberr!=6 && nbtro!=mots[motde].length)
{
oktro=0;
arg=""+arg;
for(x=0;x
Le pendu de
l'air et des combustions |
|
|