Código:
lo anterior era un banner, acontinuacion pondre el codigo de banners aleatorios con imagenes, claro esta que yo no quiero un codigo de banners aleatorios con imagenes, si no un codigo de banners aleatorios con el codigo anterior reemplazando a la imagen, pero no he sido capaz de saber como hacer esto, si alguien podria ayudarme se lo agradeceria<object width="300" height="250"> <param name="movie" value="http://www.clic507.com/aff/accounts/default1/banners/495821.swf?clickTAG=http%3A%2F%2Fwww.clic507.com%2Faff%2Fscripts%2Fclick.php%3Fa_aid%3D3553%26a_bid%3D03757890%26desturl%3Dhttp%253A%252F%252Fatlantistv.blogspot.com" /> <param name="loop" value="true"/> <param name="menu" value="false"/> <param name="quality" value="medium"/> <param name="wmode" value="Window"/> <embed src="http://www.clic507.com/aff/accounts/default1/banners/495821.swf?clickTAG=http%3A%2F%2Fwww.clic507.com%2Faff%2Fscripts%2Fclick.php%3Fa_aid%3D3553%26a_bid%3D03757890%26desturl%3Dhttp%253A%252F%252Fatlantistv.blogspot.com" width="300" height="250" loop="true" menu="false" swliveconnect="FALSE" wmode="Window" allowscriptaccess="always"></embed> </object> <img style="border:0" src="http://www.clic507.com/aff/scripts/imp.php?a_aid=3553&a_bid=03757890" width="1" height="1" alt="" />
codigo de banners aleatorios con imagenes y links:
Código:
<script language="JavaScript"> var imagenumber = 4; var randomnumber = Math.random(); var rand1 = Math.round( (imagenumber-1) * randomnumber); images = new Array; images[0] = "URL del banner 1"; images[1] = "URL del banner 2"; images[2] = "URL del banner 3"; images[3] = "URL del banner 4"; links = new Array; links[0] = "#"; links[1] = "#"; links[2] = "#"; links[3] = "#"; var image = images[rand1]; var link = links[rand1]; </script> <script>document.write('<a href="'+link+'"><img style="border: 0px;" src="'+ image +'"></a>')</script>