18 de Diciembre, 2008
· General |
Texto en caja que sube y baja automaticamente |
Es un texto encuadrado dentro de una caja, que aparecerá en el sidebar, y que pulsando los respectivos "Arriba, Abajo, Pausa o Volver" efectuará automáticamente el recorrido.
En Diseño + Elemento de página + abrir un gadget de HTML/Java.
Copiar en él el siguiente código, modificando a continuación los puntos que se señalan:
<div style="background-color:#FFff99;width:187px;"><!--AQUÍ EDITAR ANCHO Y COLOR DE FONDO DE LA CAJA-->
<center><a href="javascript:movedown()">Subir</a> | <a href="javascript:moveup()">Bajar</a> | <a href="javascript:stopscroll()">Pausa</a> | <a href="javascript:movetop()">Volver</a></center><!--AQUÍ EDITAR EL MENU--> </div> <script language="JavaScript1.2"> var speed=2
iens6=document.all||document.getElementById ns4=document.layers <!--AQUÍ EDITAR EL ALTO, ANCHO Y BORDE DE LA CAJA--> if (iens6) {document.write ('<div id="container" style="position:relative;width:185px;height:150px;overflow:hidden;border:2px ridge white">') <!--AQUÍ EDITAR EL ANCHO Y ESPACIO DEL CONTENIDO--> document.write('<div id="content" style="position:absolute;width:183px;left:2px;top:0px">') } </script> <!--INSERTAR CONTENIDO-->
Este adiós, no maquilla un "hasta luego", este nunca, no esconde un "ojalá", estas cenizas, no juegan con fuego, este ciego, no mira para atrás. Este notario firma lo que escribo, esta letra no la protestaré, ahórrate el acuse de recibo estas vísperas, son las de después. A este ruido, tan huérfano de padre no voy a permitirle que taladre un corazón, podrido de latir este pez ya no muere por tu boca este loco se va con otra loca estos ojos no lloran más por ti.
<!--FIN DEL CONTENIDO--> <script language="JavaScript1.2"> if (iens6){ document.write('</div></div>') var crossobj=document.getElementById? document.getElementById("content") : document.all.content var contentheight=crossobj.offsetHeight } else if (ns4){ var crossobj=document.nscontainer.document.nscontent var contentheight=crossobj.clip.height }
function movedown(){ if (window.moveupvar) clearTimeout(moveupvar) if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100)) crossobj.style.top=parseInt(crossobj.style.top)-speed+"px" else if (ns4&&crossobj.top>=(contentheight*(-1)+100)) crossobj.top-=speed movedownvar=setTimeout("movedown()",20)<!--VELOCIDAD - ",00 ES MAS RAPIDO--> }
function moveup(){ if (window.movedownvar) clearTimeout(movedownvar) if (iens6&&parseInt(crossobj.style.top)<=0) crossobj.style.top=parseInt(crossobj.style.top)+speed+"px" else if (ns4&&crossobj.top<=0) crossobj.top+=speed moveupvar=setTimeout("moveup()",20)<!--VELOCIDAD - ",00 ES MAS RAPIDO--> }
function stopscroll(){ if (window.moveupvar) clearTimeout(moveupvar) if (window.movedownvar) clearTimeout(movedownvar) }
function movetop(){ stopscroll() if (iens6) crossobj.style.top=0+"px" else if (ns4) crossobj.top=0 }
function getcontent_height(){ if (iens6) contentheight=crossobj.offsetHeight else if (ns4) document.nscontainer.document.nscontent.visibility="show" } window.onload=getcontent_height </script>
|
|
publicado por
rewind a las 13:53 · Sin comentarios
· Recomendar |
|
|
Al margen |
hola bievenidos a este rincon de trucos y pistas |
bievenidos a este rincon de trucos y pistas donde podras encontrar manuales y trucos de varias cosas espero que te sirva de ayuda |
| | |
Calendario |
 |
Abril 2025 |
 |
|
DO | LU | MA | MI | JU | VI | SA | | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 |
|
|
| | |
|