Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/07/2008, 01:03
cgm-util
 
Fecha de Ingreso: septiembre-2006
Ubicación: Torrevieja (Alicante)
Mensajes: 59
Antigüedad: 17 años, 8 meses
Puntos: 1
Problemas con un scroll y Mozilla

<script type="text/javascript">
var ancho=300
var alto=300
var velocidad=1
var contenido='<font face="Arial" size="2" color="#FFFFFF"><a href="periodico.html">RESULTADO Y DESTINO DE LA VENTA DEL CUADRO...</a><br>Aquí podéis conocer el resultado de la venta del cuadro y su destino...Pulse en el título<br><br><a href="periodico.html">PROCESION DEL CORPUS CRISTI...</a>Podéis conocer la evolución de la Procesión del Corpus Cristi y sus fotografías...<BR>Pulsar en el título...<br><br><a href="periodico.html">LA CONSTRUCCION DE LA NUEVA PARROQUIA DE SAN PEDRO Y SAN PABLO...</a><br>Aquí podéis ver las fotos iniciales del las obras de esta parroquia que siguen su curso...Pulse en el título<br><br></font>';

if (document.all)
document.write('<marquee direction="up" scrollAmount='+velocidad+' style="width:'+ancho+';height:'+alto+'">'+contenid o+'</marquee>')

function regenerar(){
window.location.reload()
}
function regenerar2(){
if (document.layers){
setTimeout("window.onresize=regenerar",450)
inimarquee()
}
}

function inimarquee(){
document.cmarquee01.document.cmarquee02.document.w rite(contenido)
document.cmarquee01.document.cmarquee02.document.c lose()
thelength=document.cmarquee01.document.cmarquee02. document.height
scrollit()
}

function scrollit(){
if (document.cmarquee01.document.cmarquee02.top>=thel ength*(-1)){
document.cmarquee01.document.cmarquee02.top-=velocidad
setTimeout("scrollit()",100)
}
else{
document.cmarquee01.document.cmarquee02.top=alto
scrollit()
}
}
window.onload=regenerar2
</script>

Tengo el este scroll en una página que me funciona perfectamente en IE pero no lo hace en Mozilla. Por favor ¿Que debo cambiar?