Bonjour,

J'ai une page php qui contient du javascript mais j'ai une erreur et je sais pas où elle est :s

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Exercice intéractif</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<SCRIPT language=JavaScript>
<!--
function SymError()
{
  return true;
}
 
window.onerror = SymError;
 
var SymRealWinOpen = window.open;
 
function SymWinOpen(url, name, attributes)
{
  return (new Object());
}
 
window.open = SymWinOpen;
 
//-->
</SCRIPT>
 
<SCRIPT src="images/librairie.js"></SCRIPT>
<LINK href="images/style.css" type=text/css 
rel=STYLESHEET>
<SCRIPT>
function correction(){
compt=0;
lesTrous = new Array();
lesTrous[0]= dlib.forms('un').rep0.value;
lesTrous[1]= dlib.forms('un').rep1.value;
for(i=0;i<=2;i++)
nettoyer(lesTrous[i],i);
if(lesTrous[0]!="croissant")
	dlib.forms('un').rep0.style.color="#ff0033";
else
	compt++;
if(lesTrous[1]!="fertile")
	dlib.forms('un').rep1.style.color="#ff0033";
else
	compt++;
note=(compt*20)/2;
alert( Math.round(note) + " sur 20");}
 
function nettoyer(leMot,nbre){
leMotMin=leMot.toLowerCase();
 
if(leMotMin.search(/ /)!=-1)
leMotSans=leMotMin.replace(/ /g,"");
else
leMotSans=leMotMin;
 
lesTrous[i]=leMotSans;}
</SCRIPT>
 
<script type="text/javascript">
<!--
function bloque_clic()
{
alert('Clic droit bloqué');
return false;
}
//-->
</script>
</head>
<body background="images/fondclair.jpg">
 
<P class=centrage> 
  <!--debut iframe phpmypub -->
  <font size="5"><strong>Exercice interactif : Sans titre</strong></font> 
 
<P class=centrage> <strong>Completez le texte suivant :<strong></strong></strong> </P>
<FORM name=un>
<P>Dans le <INPUT onClick="javascript:this.style.color='#000000';" size=9 name=rep0> <INPUT onClick="javascript:this.style.color='#000000';" size=7 name=rep1></P>
<P class=centrage><A class=cor href="javascript:correction()">Correction</A></P>
<SCRIPT language=JavaScript>
<!--
window.open = SymRealWinOpen;
//-->
</SCRIPT>
 
</FORM>
</BODY>
</HTML>