Ver Mensaje Individual
  #14 (permalink)  
Antiguo 17/01/2003, 16:19
Avatar de Kaopectate
Kaopectate
Colaborador
 
Fecha de Ingreso: diciembre-2001
Ubicación: Curaçao (Antillas Holandesas)
Mensajes: 3.179
Antigüedad: 23 años, 2 meses
Puntos: 38
Prueba asi:

Nombre del archivo: funciones.js
Código PHP:
function scrollit(seed) {
var 
m1 "";
var 
m2 " ";

var 
msg=m1+m2;
var 
out " ";
var 
1;
if (
seed 100) {
seed--;
cmd="scrollit("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else if (
seed <= 100 && seed 0) {
for (
c=seed c++) {
out+=" ";
}
out+=msg;
seed--;
window.status=out;
cmd="scrollit("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else if (
seed <= 0) {
if (-
seed msg.length) {
out+=msg.substring(-seed,msg.length);
seed--;
window.status=out;
cmd="scrollit("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else {
window.status=" ";
timerTwo=window.setTimeout("scrollit(100)",75);
}
}

Tu programa HTML quedaría asi:

Código PHP:
<html>
 <
head>
  <
title>ejemplo</title>
  <
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <
meta name="GENERATOR" content="Microsoft FrontPage 3.0">
  <
script language="JavaScript" src="funciones.js">
  
</script>
 </head>
 <body>
 </body>
</html> 
Si no te funciona avísame, porque tienes un document.write al que no le encuentro sentido. Quizás no estás enviando todo el código sino un pedazo.

Saludos.