Ver Mensaje Individual
  #4 (permalink)  
Antiguo 24/05/2004, 02:13
Avatar de KarlanKas
KarlanKas
Moderador extraterrestre
 
Fecha de Ingreso: diciembre-2001
Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 24 años, 10 meses
Puntos: 61
Bueno, en realidad debes cambiar más cosas. Para ponertelo fácil, cambia desde después de la ultima noticia hasta justo antes del principio de la función escrolea() por esto:


Código PHP:
var cont = parseInt(noticias.length*Math.random(1));
var 
det = false
function escribe(){
document.write ('<div id="mami" style="width:' + ancho + '; height:' + alto + 'px; position:relative;  overflow:hidden ">')
document.write('<table bgcolor="' + fondo + '" border = "' + marco + '" width="' + ancho + '" height="100%"><tr><td valign="top">')
document.write ('<div id="uno" style="top:' + alto +'; width:' + ancho + ' height:' + alto + 'px;  ">')
document.write ('<div class="titular">')
document.write (noticias[cont].titular)
document.write ('</div>')
document.write ('<div class="fecha">')
document.write (noticias[cont].fecha)
document.write ('</div>')
document.write ('<div class="texto">')
document.write (noticias[cont].texto)
document.write ('</div>')
if(
masInfo == true){
    
document.write ('<a class="enlace" href="')
    
document.write (noticias[cont].enlace)
    
document.write ('" target="' + destino + '">más información...</a>')
    }
    
cont+=1
document
.write ('</div>')
document.write ('<div id="dos" style="top:' + (alto*2) +'; width:' + ancho + ' height:' + alto + 'px; ">')
document.write ('<div class="titular">')
document.write (noticias[cont].titular)
document.write ('</div>')
document.write ('<div class="fecha">')
document.write (noticias[cont].fecha)
document.write ('</div>')
document.write ('<div class="texto">')
document.write (noticias[cont].texto)
document.write ('</div>')
if(
masInfo == true){
    
document.write ('<a class="enlace" href="')
    
document.write (noticias[cont].enlace)
    
document.write ('" target = "' + destino + '">más información...</a>')
    }
document.write ('</div>')
document.write('</td></tr></table>')
document.write ('</div>')
if(
navigator.appName == "Netscape")
{
altoUno = document.getElementById('uno').offsetHeight}
else
{
altoUno = document.getElementById('uno').clientHeight}
document.getElementById('uno').onmouseover =function(){
    
det = true
    clearTimeout
(tiempo)
    }
document.getElementById('uno').onmouseout =function(){
    
det = false;
    
clearTimeout(tiempo)
    
escrolea()
    }

document.getElementById('dos').onmouseover =function(){
    
det = true
    clearTimeout
(tiempo)
    }
document.getElementById('dos').onmouseout =function(){
    
det = false;
    
clearTimeout(tiempo)
     
escrolea()
     
    }
}
desp = 1

cont
+=1;

var 
pos,pos2
function escrolea(){

//A partir de aquí todo igual 
__________________
Cómo escribir

No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia.