Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/10/2008, 19:27
Avatar de pato12
pato12
 
Fecha de Ingreso: septiembre-2007
Ubicación: Salta
Mensajes: 1.620
Antigüedad: 16 años, 8 meses
Puntos: 101
Respuesta: Efecto de anclaje

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
__________________
Half Music - www.halfmusic.com