Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/12/2004, 01:13
Avatar de fgil2
fgil2
 
Fecha de Ingreso: enero-2003
Ubicación: zaragoza
Mensajes: 285
Antigüedad: 22 años, 2 meses
Puntos: 0
Hola adancer:

Después de algunas modificaciones me ha quedado algo asi, mira a ver si te vale.
-----------------------------------------------------------------------------

<html>
<head>
</head>
<body bgcolor="#000000">
<script language="JavaScript1.2">

var delay=3000
var fcontent=new Array()
begintag='<font face="Arial" size=2>' //tag que abre los mensajes
fcontent[0]="<b>Ejemplo...</b><br><br>Crear un sitio web es relativamente fácil. Lo dificil es darle un buen contenido, diseño y enfoque"
fcontent[1]="El tener en un mismo sitio, mas de 3 paginas de informacion, cansa al visitante y lo hace dejar el sitio."
fcontent[2]="Una de las causas por las que el visitante regresa a un sitio frecuentemente es porque bla, bla, bla."
closetag='</font>'
var fwidth=250 //ancho
var fheight=90 //alto
var ie4=document.all&&!document.getElementById
var ns4=document.layers
var DOM2=document.getElementById
var faderdelay=0
var index=0
if (DOM2)
faderdelay=3000
function changecontent(){
if (index>=fcontent.length)
index=0
if (DOM2){
document.getElementById("fscroller").style.color=" rgb(255,255,255)"
document.getElementById("fscroller").innerHTML=beg intag+fcontent[index]+closetag
colorfade()
}
else if (ie4)
document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag
else if (ns4){
document.fscrollerns.document.fscrollerns_sub.docu ment.write(begintag+fcontent[index]+closetag)
document.fscrollerns.document.fscrollerns_sub.docu ment.close()
}
index++
setTimeout("changecontent()",delay+faderdelay)
}
// colorfade() partially by Marcio Galli for Netscape Communications. ////////////
frame=20;
hex=255,255,255 // Initial color value.
function colorfade() {
// 20 frames fading process
if(frame>0) {
hex-=10; // increase color value
document.getElementById("fscroller").style.color=" rgb("+hex+","+hex+","+hex+")"; // Set color value.
frame--;
setTimeout("colorfade()",100);
}
else{
document.getElementById("fscroller").style.color=" rgb(0,0,0)";
frame=20;
hex=255
}
}
if (ie4||DOM2)
document.write('<div id="fscroller" style="border:1px solid white;width:'+fwidth+';height:'+fheight+';padding: 2px"></div>')
window.onload=changecontent
</script>
<ilayer id="fscrollerns" width="&amp;{fwidth};" height="&amp;{fheight};">
<layer id="fscrollerns_sub" width="&amp;{fwidth};" height="&amp;{fheight};" left="0" top="0">
</layer>
</ilayer>

</body>
</html>
__________________
fer