Ver Mensaje Individual
  #4 (permalink)  
Antiguo 19/08/2011, 10:28
Avatar de Panino5001
Panino5001
Me alejo de Omelas
 
Fecha de Ingreso: mayo-2004
Ubicación: -34.637167,-58.462984
Mensajes: 5.148
Antigüedad: 20 años
Puntos: 834
Respuesta: script para controlar el scroll?

Fijate así:
Código PHP:
<!DOCTYPE HTML>
<
html>
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<
title></title>
<
style>
#pp{ width:200px; height:300px; border:1px solid #000; overflow:auto;}
</style>
<
script>
var 
ns={nop:0};
function 
bajar(){
    if(!
ns.nop)
        
document.getElementById('pp').scrollTop=document.getElementById('pp').scrollHeight;
    
setTimeout(bajar,10);
}
function 
isOver(){
    
ns.nop=1;    
}
function 
isOut(){
    
ns.nop=0;
}
onload=function(){
    
document.getElementById('pp').onmouseover=isOver;
    
document.getElementById('pp').onmouseout=isOut;
    
bajar();
};
</script>
</head>

<body>
<div id="pp">You think water moves fast? You should see ice. It moves like it has a mind. Like it knows it killed the world once and got a taste for murder. After the avalanche, it took us a week to climb out. Now, I don't know exactly when we turned on each other, but I know that seven of us survived the slide... and only five made it out. Now we took an oath, that I'm breaking now. We said we'd say it was the snow that killed the other two, but it wasn't. Nature is lethal but it doesn't hold a candle to man.You think water moves fast? You should see ice. It moves like it has a mind. Like it knows it killed the world once and got a taste for murder. After the avalanche, it took us a week to climb out. Now, I don't know exactly when we turned on each other, but I know that seven of us survived the slide... and only five made it out. Now we took an oath, that I'm breaking now. We said we'd say it was the snow that killed the other two, but it wasn't. Nature is lethal but it doesn't hold a candle to man.You think water moves fast? You should see ice. It moves like it has a mind. Like it knows it killed the world once and got a taste for murder. After the avalanche, it took us a week to climb out. Now, I don't know exactly when we turned on each other, but I know that seven of us survived the slide... and only five made it out. Now we took an oath, that I'm breaking now. We said we'd say it was the snow that killed the other two, but it wasn't. Nature is lethal but it doesn't hold a candle to man.</div>
</body>
</html>