|
SebastieZ
| Inscrit le: 22 Juil 2005 |
| Messages: 5 |
|
|
 |
| Posté le: Lun 09 Avr 2007, 3:30 pm |
|
 |
 |
 |
 |
Bonjour voici le script que je voudrais mettre en place mais une erreur s'y est involontairement dissimuler car il ne fonctionne pas.
J'en appelle donc aux connaisseurs pour m'aider dans la correction de ce script.
<script>
function LienAuHasard()
{
Url = new Array;
Url[0] = "http://www.site1.com";
Url[1] = "http://www.site2.be";
Url[2] = "http://www.site3.nu";
Url[3] = "http://www.site4.fr";
ChoixLien = Math.round(Math.random() * (Url.length+3));
window.open(Url[ChoixLien],'_self');
}
</script>
<script>location.href =LienAuHasard();</script> |
Merci pour votre aide. SEB
|
|
|