Respuesta a: Publicidad propia

Inicio Foros WordPress Publicidad / Ingresos Publicidad propia Respuesta a: Publicidad propia

#42859

SpaceBoxing
Participante

Rodador de bannners al azar.
Pon este en un widget de html y lo pones en la sidebar derecha.

<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] = “donde va dirgida la imagen”;
links[1] = “#”;
links[2] = “#”;
links[3] = “#”;

var image = images[rand1];
var link = links[rand1];
</script>

<script>document.write(‘‘)</script>

que vayan toddas las imagenes del mismo tamaño.

Banners aleatorios

<script language=javascript>
/*
+———————————————————+
| Ad Simple Copyright http://www.YugDesign.com |
+———————————————————+
| This program may be used and hosted free of charge by |
|anyone for personal purpose as long as this copyright |
|notice remains intact. |
+———————————————————+
*/

var img_width = “468”;
var img_height = “60”;
var img_title = “Click Here”;

var ad=new Array()
//insert here your images src
ad[0]=’http://www.site.com/image1′;
ad[1]=’http://www.site.com/image2′;
ad[2]=’http://www.site.com/image3′;
ad[3]=’http://www.site.com/image4′;
ad[4]=’http://www.site.com/image5′;

var links=new Array()
//insert here your links
links[0]=’http://www.links1′;
links[1]=’http://www.links2′;
links[2]=’http://www.links3′;
links[3]=’http://www.links4′;
links[4]=’http://www.links5′;

var xy=Math.floor(Math.random()*ad.length);
document.write(‘'+img_title+'‘);
</script>

Pin It on Pinterest

Ir al contenido