Bonjour,
je rencontre des erreurs xhtml sur une publicité mes je n'arrive pas à comprend !
Voici le code de la pub :
Code:
<script>
var links = new Array('<a href="http://www.yes-messenger.com/?id=44435& ... acker=bloc" onclick="window.open(this.href); return false;"><img src="http://www.sv2.biz/modules/cbsys/promo/ ... ></a>','<a href="http://www.yes-messenger.com/?id=44435& ... acker=bloc" onclick="window.open(this.href); return false;"><img src="http://www.sv2.biz/modules/cbsys/promo/ ... ></a>','<a href="http://www.yes-messenger.com/?id=44435& ... acker=bloc" onclick="window.open(this.href); return false;"><img src="http://www.sv2.biz/modules/cbsys/promo/ ... ></a>','<a href="http://www.yes-messenger.com/?id=44435& ... acker=bloc" onclick="window.open(this.href); return false;"><img src="http://www.sv2.biz/modules/cbsys/promo/ ... ></a>','<a href="http://www.yes-messenger.com/?id=44435& ... acker=bloc" onclick="window.open(this.href); return false;"><img src="http://www.sv2.biz/modules/cbsys/promo/ ... 1.gif"></a>');
var divObj= document.getElementById('J5X9');
divObj.innerHTML = links[Math.floor(Math.random()*links.length)];
</script>
Et l'erreur xhtml :
Error Line 48, Column 732: required attribute "alt" not specified.
…indow.open(this.href); return false;"><img src="http://www.sv2.biz/modules/cb
Cordialement,
erreur xhtml sur une pub
erreur xhtml sur une pub
Dernière modification par Asumbaa le 31 déc. 2009, 18:13, modifié 1 fois.
Raison : Lien publicitaire
Raison : Lien publicitaire
Re: erreur xhtml sur une pub
Hello,
L'attribut alt est obligatoire pour l'élément img.
http://www.w3.org/TR/html4/struct/objects.html#edef-IMG
Le validateur te dit simplement que tu as oublié de le spécifier
L'attribut alt est obligatoire pour l'élément img.
http://www.w3.org/TR/html4/struct/objects.html#edef-IMG
Le validateur te dit simplement que tu as oublié de le spécifier

Qui est en ligne ?
Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 4 invités