
La rotation de promotions de carpediem de fonctionne pas sur erog
-
Créé par Mister P.P.S. - Posté le 24/06/2011 23:01
tout est dans le titre.
voici le code:
<div id='GtG5'></div>
<script>
var links = new Array('<a href="http://www.eurolive.com" target="_blank_"><img src="http://www.sv2.biz/modules/cbsys/promo/bannieres/produits/583/20060615150855_468x60_04.gif" border="0"></a>','<a href="http://www.starsx.fr" target="_blank_"><img src="http://www.sv2.biz/modules/cbsys/promo/bannieres/produits/794/20070514090718_468x60_04.gif" border="0"></a>','<a href="http://www.starsx.fr" target="_blank_"><img src="http://www.sv2.biz/modules/cbsys/promo/bannieres/produits/794/20070514090718_468x60_02.gif" border="0"></a>','<a href="http://www.monliveshow.com?id=53144&e=1&w=0&tracker=468x60monliveshow01PPS&track=468x60monliveshow01PPS&exit=53144_" target="_blank_"><img src="http://www.sv2.biz/modules/cbsys/promo/bannieres/produits/781/20070418150328_468x60_03.gif" border="0"></a>','<a href="http://www.live18ans.com" target="_blank_"><img src="http://www.sv2.biz/modules/cbsys/promo/bannieres/produits/902/20090731093628_468x60_01.gif" border="0"></a>','<a href="http://www.live18ans.com" target="_blank_"><img src="http://www.sv2.biz/modules/cbsys/promo/bannieres/produits/902/20090731093628_468x60_05.gif" border="0"></a>','<a href="http://www.madamecam.com" target="_blank_"><img src="http://www.sv2.biz/modules/cbsys/promo/bannieres/produits/907/20090731104129_468x60_03.gif" border="0"></a>','<a href="http://www.madamecam.com" target="_blank_"><img src="http://www.sv2.biz/modules/cbsys/promo/bannieres/produits/907/20090731104129_468x60_05.gif" border="0"></a>');
var divObj= document.getElementById('GtG5');
divObj.innerHTML = links[Math.floor(Math.random()*links.length)];
</script>rien de s'affiche si je le met. Ne me demandez pas où il est sur mon blog, il n'y est pas car je ne laisse pas de vide sur mon blog. Testez vous meme avec ce code et vous constaterez par vous même.
Ma configuration : Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0
-
Répondu par Mister P.P.S. - Posté le 14/07/2011 10:16
C'est bon ça fonctionne en mettant un espace entre les div, comme indiqué sur un autre fil. Merci bcp !