\n'
document.write(temp);
var alphabet="abcdefghijklmnopqrstuvwxyz"
mots = new Array();
// nbmot = DEFINIT LE NOMBRE DE mots DU DICTIONNAIRE !!!
nbmot= 10;
lgmot= 0;
motde= 0;
nbtro= 0;
oktro= 0;
nberr= 0;
rien = ""
// ATTENTION LONGUEUR MAXIMALE DES mots = 13
mots[ 1]="LABORATOIRE";
mots[ 2]="BUNSEN";
mots[ 3]="TREPIED";
mots[ 4]="AGITATEUR";
mots[ 5]="DOUCHE";
mots[ 6]="ERLENMEYER";
mots[ 7]="MORTIER";
mots[ 8]="BECHER";
mots[ 9]="PILON";
mots[10]="PINCES";
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<13;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 Envoyez remarques et commentaires à
©2003-2009 I. Noels
Solutions