Cerca nel forum:
Cerca


« Precedente :: Successivo »  
Autore Messaggio
Messaggio09/03/2009, alle 18:03 (UTC)    
Oggetto: [JavaScipt] Testo Elettronico

esempio: http://tecnopcd.es.tl/Texto-Electronico-.htm

inserire il proprio testo qui: "Texto..."

Codice:
<script
language="JavaScript"><!--
var tl=new Array(
"Texto..."
);

var speed=50; /*Schreibgeschwindigkeit */
var index=0; text_pos=0;
var str_length=tl[0].length;
var contents, row;

function type_text()
{
contents='';
row=Math.max(0,index-9); /* Anzahl der Zeilen im Feld */
while(row < index)
{
contents += tl[row++] + '\r\n';
}
document.getElementById("MyLayer").innerHTML = contents + tl[index].substring(0,text_pos) + "_";
if(text_pos++==str_length)
{
text_pos=0;
index++;
if(index!=tl.length)
{
str_length=tl[index].length;
setTimeout("type_text()",1500); /* Pause in Millisekunden */
}
} else
setTimeout("type_text()",speed);
}

//--></script>

<div align="center">
<table width="400" cellpadding="0" cellspacing="0" border="6"> <!--Tabellenbreite, Rahmenstärke ----------->

<tr>
<td>

<font color="000000"><div id="MyLayer"
style="width:400px; height:250px; z-index:1; background-color: beige; layer-background-color: #ffFFFF; border: 1px none #000000; FONT: 14pt comic sans MS"></font></div></td>

<!-- In obigen Zeilen kannst Du Schriftfarbe (font color) Breite und Höhe des Textfeldes (width , height) sowie Hintergrundfarbe (background-color) Schriftgröße (FONT) und Schrifttyp (comic sans ms) verändern ! --->

</tr>
</table>
<script>type_text()</script>
</div>



--------------------
Copia e traduzione by sloong
topic originale: http://es.tl/forum/viewtopic.php?t=21517
Codice by: tecnopcd
Mostra prima i messaggi di:   


Powered by phpBB © 2001, 2005 phpBB Group
phpbb.it