|
|
|
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>
|
|