Niveau :
Privilège
1292
messages
bonjour
je n'arrive pas a faire fonctionner ce code pour changer les pubs a chaque actualisation
<div id='zIh4'></div>
<script>
var links = new Array('<a href="http://www.gayxperience.com/index.php?id=54522" target="_blank_"><img src="http://www.sv2.biz/modules/cbsys/promo/bannieres/produits/344/20050228111433_120x60_05.gif" border="0"></a>','<a href="http://www.gayxperience.com/index.php?id=54522" target="_blank_"><img src="http://www.sv2.biz/modules/cbsys/promo/bannieres/produits/344/20050228111433_120x60_01.gif" border="0"></a>','<a href="http://www.gayxperience.com/index.php?id=54522" target="_blank_"><img src="http://www.sv2.biz/modules/cbsys/promo/bannieres/produits/344/20050228111433_120x60_06.gif" border="0"></a>','<a href="http://www.gayxperience.com/index.php?id=54522" target="_blank_"><img src="http://www.sv2.biz/modules/cbsys/promo/bannieres/produits/344/20060425153436_120x60_01.gif" border="0"></a>','<a href="http://www.gayxperience.com/index.php?id=54522" target="_blank_"><img src="http://www.sv2.biz/modules/cbsys/promo/bannieres/produits/344/20060425153436_120x60_02.gif" border="0"></a>');
var divObj= document.getElementById('zIh4');
divObj.innerHTML = links[Math.floor(Math.random()*links.length)];
</script>