Ver Mensaje Individual
  #6 (permalink)  
Antiguo 17/01/2003, 13:31
Avatar de fgil2
fgil2
 
Fecha de Ingreso: enero-2003
Ubicación: zaragoza
Mensajes: 285
Antigüedad: 22 años, 2 meses
Puntos: 0
Esta podría ser la página......

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

document.write(<!-- Begin
function scrollit(seed) {
var m1 = "";
var m2 = " ";

var msg=m1+m2;
var out = " ";
var c = 1;
if (seed > 100) {
seed--;
cmd="scrollit("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 100 && seed > 0) {
for (c=0 ; 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);
}
}
}
// End -->)
</head>

<body>
</body>
</html>

¿Cómo genero el fichero js.?
Ya he creado el código del menú y lo tengo similar a este ejemplo, pero al guardarlo me lo guarda como htm, ó txt.
__________________
fer