On 1/24/07, Aleve Sicofante <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm using the trick of using the display attribute + javascript to reveal or
> hide parts of the page. It works fine except for one thing. If the user has
> scrolled down the page, clicking on any of the links that invoke the
> appropriate javascript makes the page suddenly scroll to the top. This is
> really annoying. Is there any way to change this?
>
> Please check the behaviour at this test page: http://www.vieira.es/test/
>
Because you are linking to # (which most browsers interpret as "top of page".
put a return false; statement at the end of your javascript and it
will kill the link action, e.g.
<p><a href="#" onclick="getNoticias(2,'PREV');return false;">Más
recientes</a></p>

-- 
Richard Grevers, New Plymouth, New Zealand
Hat 1: Development Engineer, Webfarm Ltd.
Hat 2: Dramatic Design www.dramatic.co.nz
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to