Brandon Aaron wrote:
> Just need to add this to your onclick:
> onclick="$('#container').ScrollTo(800);return false;"
>
> The reason you see a flash is that it is actually jumping to the top
> and then back down because the click event is not stopped.
Oh of course, yes, I should have spotted that; thanks for pointing it out.
> Also, I would suggest using $(document).ready() to attach event
> handlers instead of embedded onclick attributes.
Yes, absolutely. I was just kicking the tyres and will implement
unobtrusive code for the 'live' page.
One further point: the download packager [1] seems corrupt when
downloading scrollto. The full version of the download works, just not
the packaged version. The news page says something to do with it was
fixed on Oct 11, but it's still broken for me. Test page here [2]
[1] http://interface.eyecon.ro/download
[2] http://www.sxbrc.org.uk/biodiversity/countyrecorders/index2.php
Many thanks,
Charles
--
Charles Roper
www.charlesroper.co.uk
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/