Ver Mensaje Individual
  #6 (permalink)  
Antiguo 27/01/2008, 13:30
dark_fuhrer
 
Fecha de Ingreso: enero-2008
Ubicación: -
Mensajes: 62
Antigüedad: 17 años, 2 meses
Puntos: 0
Re: Boton a Textarea

hola.. soy diego nuevamente.... aqui te paso un codigo fuente que te puede servir... te puede servir para posicionar el cursor.. solo tienes que investigarlo... te va a ayudar mucho...
bye.. amigo.. suerte..




Cita:
<html>
<head>
<title>Scroll letra a letra (mecanografía)</title>
</head>
<p align="center"><b>Scroll letra a letra (mecanografía)
<script language="JavaScript">
/* Please do not delete these credit lines, but all the others you can change. This is a small script which does open a box with a message
in it. Easily put in this script in your <body> section.That's all what you have to do. Now every visitor who visits your page sees that box.
If you have some questions contact me at [email protected] */
// 1999 by Christian Maier 1999 http://www.beste-links.de.cx
<!-- begin
var max=0;
function textlist()
{
max=textlist.arguments.length; for (i=0; i<max; i++) this[i]=textlist.arguments[i];
}
tl=new textlist
(
"¡Bienvenido hola como estas!" // Geben Sie hier den zu scrollenden Text ein
);
var x=0; pos=0;
var l=tl[0].length;
function textticker()
{
document.tickform.tickfield.value=tl[x].substring(0,pos)+"_";
if(pos++==l)
{
pos=0;
setTimeout("textticker()",1000);
x++;
if(x==max)
x=0;
l=tl[x].length;
} else
setTimeout("textticker()",50);
}
// end -->
</script>
<script LANGUAGE="JavaScript">
<!--
document.write("<FORM NAME=\"tickform\">");
document.write("<INPUT TYPE=\"TEXT\" NAME=\"tickfield\" SIZE=\"50\">"); // Bei SIZE können Sie die Größe des Feldes ändern
document.write("</FORM>");
textticker();
//-->
</script>
</b>
<body>

</p>

<p align="center">&nbsp;</p>

</body>

</html>
y sino esta la otra.. de usar una repetitiva... osea usando While en el javascript... que recorra hasta que encuentre los corchetes...




bye bye