Hola,
Esta tal cual lo que buscaba.
Pero como puedo hacer para que envés de:
Código HTML:
onload=function(){
$('pp').addEvent('click',function(){this._scroll($('pp').getElementPosition().top,$('ppp').getElementPosition().top,.09,20);});
$('ppp').addEvent('click',function(){this._scroll($('ppp').getElementPosition().top,$('pp').getElementPosition().top,.09,20);});
$('ppcentro').addEvent('click',function(){this._scroll($('ppcentro').getElementPosition().top,$('centroarriba').getElementPosition().top,.09,20);});
$('centroarriba').addEvent('click',function(){this._scroll($('centroarriba').getElementPosition().top,$('pp').getElementPosition().top,.09,20);})
$('centroabajo').addEvent('click',function(){this._scroll($('centroabajo').getElementPosition().top,$('ppp').getElementPosition().top,.09,20);})
$('pppcentro').addEvent('click',function(){this._scroll($('pppcentro').getElementPosition().top,$('centroarriba').getElementPosition().top,.09,20);})
document.body.style.visibility='visible';
}
Pongo:
Código HTML:
<a href="#abajo" name="arriba">Abajo</a>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<a href="#arriba" name="abajo">Arriba</a>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Gracias
Salu2