#1
Texto Que simula maquina de escribir el Dom Abr 19, 2009 6:44 pm
Texto Que simula maquina de escribir el Dom Abr 19, 2009 6:44 pmHola , XD
Es un texto que disimula una maquina para escribir :
Donde dice :
Son las frases que saldran en pantalla
Donde dice :
Es el tamaño de la fuente (Letras).
Donde dice:
Se modifican los numeros para que cambie el tiempo que durara en pasar de una frase a otra.
Donde dice:
Se cambian los numeros para modificar la velocidad de la animacion.
Salu2!
Es un texto que disimula una maquina para escribir :
- Código:
<script language="Javascript1.2">
<!--
/*
Typing Scroller
Submitted by bengaliboy00@hotmail.com (hp: http://www.angelfire.com/nt/bengaliboy/)
With modifications by Dynamicdrive.com
For full source code, usage terms, and 100s more scripts, visit http://dynamicdrive.com
*/
//Secify scroller contents
var line=new Array()
line[1]="Promocionatupagina.com"
line[2]="Mas que un simple foro..."
line[3]="Una Comunidad."
line[4]="Donde puedes promocionar tus webs"
line[5]="Que esperas para registrarte?"
//Specify font size for scoller
var ts_fontsize="50px"
//--Don't edit below this line
var longestmessage=1
for (i=3;i<line.length;i++){
if (line[i].length>line[longestmessage].length)
longestmessage=i
}
//Auto set scroller width
var tscroller_width=line[longestmessage].length
lines=line.length-1 //--Number of lines
//if IE 4+ or NS6
if (document.all||document.getElementById){
document.write('<form name="bannerform">')
document.write('<input type="text" name="banner" size="'+tscroller_width+'"')
document.write(' style="background-color: '+document.bgColor+'; color: '+document.body.text+'; font-family: verdana; font-size: '+ts_fontsize+'; font-weight:bold; border: medium none" onfocus="blur()">')
document.write('</form>')
}
temp=""
nextchar=-1;
nextline=1;
cursor="\\"
function animate(){
if (temp==line[nextline] & temp.length==line[nextline].length & nextline!=lines){
nextline++;
nextchar=-1;
document.bannerform.banner.value=temp;
temp="";
setTimeout("nextstep()",1000)}
else if (nextline==lines & temp==line[nextline] & temp.length==line[nextline].length){
nextline=1;
nextchar=-1;
document.bannerform.banner.value=temp;
temp="";
setTimeout("nextstep()",1000)}
else{
nextstep()}}
function nextstep(){
if (cursor=="\\"){
cursor="|"}
else if (cursor=="|"){
cursor="/"}
else if (cursor=="/"){
cursor="-"}
else if (cursor=="-"){
cursor="\\"}
nextchar++;
temp+=line[nextline].charAt(nextchar);
document.bannerform.banner.value=temp+cursor
setTimeout("animate()",300)}
//if IE 4+ or NS6
if (document.all||document.getElementById)
window.onload=animate
// -->
</script>
Donde dice :
- Código:
line[1]="
line[2]="
line[3]="
line[4]="
line[5]="
Son las frases que saldran en pantalla
Donde dice :
- Código:
var ts_fontsize="50px"
Es el tamaño de la fuente (Letras).
Donde dice:
- Código:
setTimeout("nextstep()",1000)}
Se modifican los numeros para que cambie el tiempo que durara en pasar de una frase a otra.
Donde dice:
- Código:
setTimeout("animate()",300)}
Se cambian los numeros para modificar la velocidad de la animacion.
Salu2!
Última edición por Hackerspan. el Sáb Nov 26, 2011 11:46 pm, editado 1 vez

Hola Invitado recuerda siempre leer las Reglas del foro para evitar problemas
Nunca olvides leer las nuevas normas del foro 8D
Puedes escbribir a las siguientes direcciones
hackerspan@tfwmail.co.cc
Hackerspan@promocionatupagina.com







Mensajes
Reputacion
Puntos
Localización
Edad