Salve a tutti,
seguo sempre con interesse questo forum che considero la "Bibbia" del web-design.......
vorrei esporvi un problema di validazione di codice di un javascript inserito nella mie pagine,si tratta di un preload di immagini scaricato da questo sito che però non sono in grado di correggere per mancanza di conoscenze su javascript.
Codice:
<script type="text/javascript"> var myimages=new Array() function preloadimages(){ for (i=0;i<preloadimages.arguments.length;i++){ myimages[i]=new Image() myimages[i].src=preloadimages.arguments[i] } }
//Enter path of images to be preloaded inside parenthesis. Extend list as desired. preloadimages(".......") </script>
Risultato della validazione XTML 1.0 Transitional:
Error Line 56 column 41: character ";" not allowed in attribute specification list.
for (i=0;i<preloadimages.arguments.length; i++){
✉
Error Line 56 column 41: element "preloadimages.arguments.length" undefined.
for (i=0;i<preloadimages.arguments.length; 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.
✉
Error Line 65 column 8: end tag for "preloadimages.arguments.length" omitted, but OMITTAG NO was specified.
</script>
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
Forse sarà una supidaggine ,ma come posso corregerlo?
Grazie