Libro de Visitas Gratis
Inicio | Directorio de Páginas | Diseño Gráfico | Gadgets | Posicionamiento | Webmasters| Buscador de Artículos | Glosarios

Efecto de texto en diagonal

Añade Tu Web Al Directorio de NocionDigital.com
Una frase aparece en la parte superior izaquierda de la pantalla en diagonal y va cambiando cada x segundos para mostrar todo el mensaje.

Se pueden poner tantas frases como queramos, puedes substituir las que ya hay o añadir debajo siguiendo la misma estructura:
message[numero_de_frase]="la frase que quieres"


var message = new Array()
message[0]="XLWEBMASTERS.COM"
message[1]="códigos y trucos gratis"
message[2]="Las frases són ilimitadas"
message[3]="MUCHAS GRACIAS"


El código del Script es el siguiente:


<body>
<head>
<title>www.xlwebmasters.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- Consigue códigos con www.xlwebmasters.com -->
<SCRIPT language=JavaScript>
<!-- Beginning of JavaScript -
// script trouvé sur http://www.sitecrea.fr.st tout pour votre site
// le réalisateur :
// CREDITS:
// First diagonal textscroller worldwide by Urs Dudli and Peter Gehrig

// Copyright (c) 1999 Peter Gehrig and Urs Dudli. All rights reserved.
// Permission given to use the script provided that this notice remains
as is.
// Additional scripts can be found at http://www.24fun.ch.
// info@24fun.ch
// 1/4/2000

// IMPORTANT:
// If you add this script to a script-library or script-archive
// you have to add a link to http://www.24fun.ch on the webpage
// where First diagonal textscroller worldwide will be running.

if (document.layers) {
alert("Explorer seulement")
}
//vous mettez ci-dessous tout les textes que vous voulez (en rajoutant
un nombre après "message [")
var message = new Array()
message[0]="XLWEBMASTERS.COM"
message[1]="códigos y trucos gratis"
message[2]="Las frases són ilimitadas"
message[3]="MUCHAS GRACIAS"


var i_message=0

var scrollerheight=250
var scrollerwidth=400

var startheight=0

var font_size=25
var font_family="Times"

var timer

function initiate() {
    document.all.rotationstyle.style.posLeft=-(Math.floor(scrollerwidth/2))+font_size
    document.all.rotationstyle.style.posTop=startheight
    startscroll()
}

function startscroll() {
    if (document.all) {
       do_rotate="yes"
       rotationstyle.filters[0].apply()
       rotationstyle.innerHTML=
       `<OBJECT ID="rotationobj"
CLASSID="CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6" STYLE="position:relative;width:`+scrollerwidth+`px;height:`+2*scrollerheight+`px">`+
       `<PARAM NAME="Line0001" VALUE="SetLineStyle(0)">`+
       `<PARAM NAME="Line0002" VALUE="SetLineColor(0,0,0)">`+
       `<PARAM NAME="Line0003" VALUE="SetFillColor(0,0,0)">`+
       `<PARAM NAME="Line0004" VALUE="SetFont(``+font_family+``,
`+font_size+`, 400, 0, 0, 0)">`+
       `<PARAM NAME="Line0005" VALUE="Text(``+message[i_message]+``,
0, 0, 0)">`+
       `</OBJECT>`
       rotationstyle.filters[0].play()
       rotationobj.Rotate(0,0,-45)

       i_message++
       if (i_message>=message.length)
{i_message=0}
       timer=setTimeout("startscroll()",4000)
    }
}

function stopscroll() {
    do_rotate="no"
}
// - End of JavaScript - -->
</SCRIPT>
</head>

<body onload=initiate()>

<SPAN id=rotationstyle
style="FILTER: revealTrans(Transition=3, Duration=2); LEFT: -2000px;
POSITION: absolute">
<OBJECT classid=CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6
id=rotationobj></OBJECT></SPAN>
</body>
</html>



 
Hits
DOCUMENTOS RELACIONDOS
558
Algoritmo recursivo para un arbol.
163
Recordatorio del número de visitas.
1110
Eventos de JavaScript.
577
Sacar el subrayado de los links.
305
Login de 3 intentos.
385
Aclarar una imágen al pasar por encima.
236
Evitar que té linkeen las imágenes.
223
Compresión HTTP: ¡Paginas super-rápidas!.
143
Información adicional en los campos de los formularios.
1342
Introducción al PHP.
220
Control del NIF.
322
Incluir la fecha y la hora desde PHP.
125
Propósito de este documento.
112
Notas sobre el lenguaje.
228
Detección del navegador.
485
Las variables GLOBALES.
367
Catálogo de imágenes con paginación.
221
Trabajar con ficheros de texto.
142
Head.
226
Agilizar la carga de tus páginas ASP.


www.nociondigital.com - Todo para un mundo digital. Páginas Webs, Buscadores y Webmasters....