var snowsrc="images/goutte.png"
var snowsrc2="images/goutte2.png"
var no = 3;/*ici on change le nombre de goutte a afficher en meme temps sur l'ecran*/
var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
var nn6up = (document.getElementById) ? 1 : 0;
var dx, xp, yp;
var am, stx, sty;
var i, doc_width 800, doc_height 600;
if (ns4up)
{
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
}
if (ns4up) {
snowNS();
} else if (ie4up) {
snowIE();
} else if (nn6up) {
snowNN6();
}
</script>
<!-- FIN DU SCRIPT -->
et voici les debuts d'erreurs:
Line 309, Column 30: required attribute "type" not specified
<script language="javascript">
✉
The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
Line 355, Column 23: character ";" not allowed in attribute specification list
for (i = 0; i<no; ++ i)
✉
Line 355, Column 23: element "no" undefined. Did you mean "noframes" or "noscript"?
for (i = 0; i<no; ++ i)
✉
You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:
incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
Line 368, Column 36: Attribute "name" exists, but can not be used for this element.
document.write("<layer name=dot"+ i +" left=15 top=15 visibility=show> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
Plusieurs choses :
- rajoute type="text/javascript" à ta balise <script>
- Je ne pense pas que la balise <layer> soie reconnu par W3C
- Tes attributs left et top doivent comporter une unité or tu à ça par exemple :