Recharger

Signaler
Messages postés
35
Date d'inscription
mercredi 19 janvier 2005
Statut
Membre
Dernière intervention
22 mai 2006
-
Messages postés
35
Date d'inscription
mercredi 19 janvier 2005
Statut
Membre
Dernière intervention
22 mai 2006
-
Bonjour à tous,

J'aimerai savoir comment recharger une partie seulement d'un script.

Merci d'avance :o)


peter1789

2 réponses

Messages postés
35
Date d'inscription
mercredi 19 janvier 2005
Statut
Membre
Dernière intervention
22 mai 2006

Salut à tous !

En fait j'ai trouvé la solution ailleurs...
Merci quand même !


peter1789
Messages postés
35
Date d'inscription
mercredi 19 janvier 2005
Statut
Membre
Dernière intervention
22 mai 2006

Bonjour à tous,

J'aimerai savoir pkoi le script suivant me renvoie un message d'erreur :



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<script language= "JavaScript1.2">
<!--
i=1;
x=((Math.random()*5.99999999999999999999999999999)+1);
x=Math.floor(x);
y=((Math.random()*5.99999999999999999999999999999)+1);
y=Math.floor(y);
z=((Math.random()*5.99999999999999999999999999999)+1);
z=Math.floor(z);

function game() {

i =(i+1);
if (i= =2) {
if((x1.x2.checked) == true) {
xx =((Math.random()*5.99999999999999999999999999999)+1);
xx= Math.floor(xx);
}
else {
xx = x;
}
if((y1.y2.checked)= =true) {
yy =((Math.random()*5.99999999999999999999999999999)+1);
yy= Math.floor(yy);
}
else {
yy = y;
}
if((z1.z2.checked)= =true) {
zz =((Math.random()*5.99999999999999999999999999999)+1);
zz= Math.floor(zz);
}
else {
zz = z;
}
}
if (i= =3) {
if((xx1.xx2.checked) == true) {
xxx =((Math.random()*5.99999999999999999999999999999)+1);
xxx= Math.floor(xxx);
}
else {
xxx = xx;
}
if((yy1.yy2.checked)= =true) {
yyy =((Math.random()*5.99999999999999999999999999999)+1);
yyy= Math.floor(yyy);
}
else {
yyy = yy;
}
if((zz1.zz2.checked)= =true) {
zzz =((Math.random()*5.99999999999999999999999999999)+1);
zzz= Math.floor(zzz);
}
else {
zzz = zz;
}
}
}
//-->
</script>
<title>essai</title>
</head>

<script language= "JavaScript1.2">
<!--
switch(x) {
case 1:
document.write('<form name ="x1">rejouer</form>');
break;
case 2:
document.write('<form name= "x1">rejouer</form>');
break;
case 3 :
document.write('<form name ="x1">rejouer</form>');
break;
case 4:
document.write('<form name= "x1">rejouer</form>');
break;
case 5 :
document.write('<form name ="x1">rejouer</form>');
break;
case 6:
document.write('<form name= "x1">rejouer</form>');
break;
}

switch(y) {
case 1:
document.write('<form name ="y1">rejouer</form>');
break;
case 2:
document.write('<form name= "y1">rejouer</form>');
break;
case 3 :
document.write('<form name ="y1">rejouer</form>');
break;
case 4:
document.write('<form name= "y1">rejouer</form>');
break;
case 5 :
document.write('<form name ="y1">rejouer</form>');
break;
case 6:
document.write('<form name= "y1">rejouer</form>');
break;
}

switch(z) {
case 1:
document.write('<form name ="z1">rejouer</form>');
break;
case 2:
document.write('<form name= "z1">rejouer</form>');
break;
case 3 :
document.write('<form name ="z1">rejouer</form>');
break;
case 4:
document.write('<form name= "z1">rejouer</form>');
break;
case 5 :
document.write('<form name ="z1">rejouer</form>');
break;
case 6:
document.write('<form name= "z1">rejouer</form>');
break;
}
function dice() {
switch(xx) {
case 1:
document.write('<form name ="xx1">rejouer</form>');
break;
case 2:
document.write('<form name= "xx1">rejouer</form>');
break;
case 3 :
document.write('<form name ="xx1">rejouer</form>');
break;
case 4:
document.write('<form name= "xx1">rejouer</form>');
break;
case 5 :
document.write('<form name ="xx1">rejouer</form>');
break;
case 6:
document.write('<form name= "xx1">rejouer</form>');
break;
default :
document.write('');
break;
}

switch(yy) {
case 1:
document.write('<form name ="yy1">rejouer</form>');
break;
case 2:
document.write('<form name= "yy1">rejouer</form>');
break;
case 3 :
document.write('<form name ="yy1">rejouer</form>');
break;
case 4:
document.write('<form name= "yy1">rejouer</form>');
break;
case 5 :
document.write('<form name ="yy1">rejouer</form>');
break;
case 6:
document.write('<form name= "yy1">rejouer</form>');
break;
default :
document.write('');
break;
}
switch(zz) {
case 1:
document.write('<form name ="zz1">rejouer</form>');
break;
case 2:
document.write('<form name= "zz1">rejouer</form>');
break;
case 3 :
document.write('<form name ="zz1">rejouer</form>');
break;
case 4:
document.write('<form name= "zz1">rejouer</form>');
break;
case 5 :
document.write('<form name ="zz1">rejouer</form>');
break;
case 6:
document.write('<form name="zz1">rejouer</form>');
break;
default:
document.write('');
break;
}
document.write('')
}
function dice2() {
switch(xxx) {
case 1:
document.write('');
break;
case 2:
document.write('');
break;
case 3:
document.write('');
break;
case 4:
document.write('');
break;
case 5:
document.write('');
break;
case 6:
document.write('');
break;
default:
document.write('');
break;
}

switch(yyy) {
case 1:
document.write('');
break;
case 2:
document.write('');
break;
case 3:
document.write('');
break;
case 4:
document.write('');
break;
case 5:
document.write('');
break;
case 6:
document.write('');
break;
default:
document.write('');
break;
}
switch(zzz) {
case 1:
document.write('');
break;
case 2:
document.write('');
break;
case 3:
document.write('');
break;
case 4:
document.write('');
break;
case 5:
document.write('');
break;
case 6:
document.write('');
break;
default:
document.write('');
break;
}
}
//-->
</script>

</html>



Merci d'avance !


peter1789