Bienvenu(e)! Identification Créer un nouveau profil

Recherche avancée

Aide html aléatoire

Envoyé par Bdragon 
Aide html aléatoire
vendredi 7 août 2009 16:27:00
Bonjour,

J'aimerais savoir ce qui cloche dans mon script car il ne veut pas fonctionner sur mon site:

&nbsp;<script> function aleatoire(phrases) {
var length = phrases.length;
var rand = Math.floor(Math.random()*length);
document.write(phrases[rand]);
}
aleatoire([
"<a href='http://poudlard.xooit.eu/f129-La-Cabane-d-Hagrid.htm'><img src='http://img34.imageshack.us/img34/9012/96611476.jpg' />",
"<a href='http://poudlard.xooit.eu/f149-Salle-sur-demande.htm'><img src='http://img34.imageshack.us/img34/9012/96611476.jpg'> />",
"<a href='http://poudlard.xooit.eu/f125-Foret-Interdite.htm'><img src='http://img34.imageshack.us/img34/9012/96611476.jpg'> />
" ]);
</script>&quot;<a href="[poudlard.xooit.eu] src="[img34.imageshack.us]; />
&quot;, </a>



Message édité (07-08-2009 16:27)
Seuls les utilisateurs enregistrés peuvent poster des messages dans ce forum.

Cliquez ici pour vous connecter