Foros del Web » Creando para Internet » Diseño web »

Layer, O Scirpt para Adsense

Estas en el tema de Layer, O Scirpt para Adsense en el foro de Diseño web en Foros del Web. Hola, buenas mirar he visto en una web... filmulde10 (punto) . c omo para no escribir la url, que tiene un banner que sale al ...
  #1 (permalink)  
Antiguo 16/08/2010, 10:53
 
Fecha de Ingreso: febrero-2010
Mensajes: 43
Antigüedad: 14 años, 1 mes
Puntos: 0
Layer, O Scirpt para Adsense

Hola, buenas mirar he visto en una web... filmulde10 (punto) . c omo para no escribir la url, que tiene un banner que sale al entrar en la web, alguien sabria que script o layer utiliza? o programacion pop, ya que vi el otro dia que tambien metio el codigo de adsense... y me a hecho muchas intrigas... yo he conseguido unos cuantos... pero no me rulan...

dejo un codigo asi lo veremos todos.
Código:
<script language="JavaScript1.2">
var offsetfromedge=10 //offset from window edge when content is "docked". Change if desired.
var dockarray=new Array() //array to cache dockit instances
var dkclear=new Array() //array to cache corresponding clearinterval pointers

function dockit(el, duration){
if (!document.all) return;
this.source=document.all? document.all[el] : document.getElementById(el);
this.source.height=this.source.offsetHeight;
this.docheight=truebody().clientHeight;
this.duration=duration;
this.pagetop=0;
this.elementoffset=this.getOffsetY();
dockarray[dockarray.length]=this;
var pointer=eval(dockarray.length-1);
var dynexpress='dkclear['+pointer+']=setInterval("dockornot(dockarray['+pointer+'])",100);';
dynexpress=(this.duration>0)? dynexpress+'setTimeout("clearInterval(dkclear['+pointer+']); dockarray['+pointer+'].source.style.top=0", duration*1000)' : dynexpress;
eval(dynexpress);
}

dockit.prototype.getOffsetY=function(){
var totaloffset=parseInt(this.source.offsetTop);
var parentEl=this.source.offsetParent;
while (parentEl!=null){
totaloffset+=parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function dockornot(obj){
obj.pagetop=truebody().scrollTop;
if (obj.pagetop>obj.elementoffset) //detect upper offset
obj.source.style.top=obj.pagetop-obj.elementoffset+offsetfromedge;
else if (obj.pagetop+obj.docheight<obj.elementoffset+parseInt(obj.source.height)) //lower offset
obj.source.style.top=obj.pagetop+obj.docheight-obj.source.height-obj.elementoffset-offsetfromedge;
else
obj.source.style.top=0;
}

function truebody(){
return (document.compatMode!="BackCompat")? document.documentElement : document.body
}

if (document.all)
document.write('<style>.dockclass{position:relative;}</style>')

</script>


<table width="250px" border="0" id="google_dock" class="dockclass">

<center>
<script type="text/javascript"><!--
google_ad_client = "pub-------";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_color_border = "000000";
google_color_bg = "000000";
google_color_link = "FF0000";
google_color_url = "666666";
google_color_text = "FFFF00";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
</table>
si alguien puede hacer, que suba y baja o algo, que siga al rato seria mejor... consiguiendo... alguna empresa que pague por publicidad y permita un banner... asi mejoraria las cosas.
  #2 (permalink)  
Antiguo 16/08/2010, 11:43
 
Fecha de Ingreso: febrero-2010
Mensajes: 43
Antigüedad: 14 años, 1 mes
Puntos: 0
Respuesta: Layer, O Scirpt para Adsense

alguien sabe algo?¿

Etiquetas: adsense, layer
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 18:37.