PDA

View Full Version : Anchor points - making the page scroll rather than jump.


tommisauce
10-09-2007, 10:59 AM
Hi folks,

This is a simple enough problem - I am using anchor points on a site. However I have recently seen anchor points being tackled in another way on a particular site, when linking to the anchor point the pages 'scrolls' rather than 'jumps':
http://www.visioncomm.co.uk/main/services/article/translation

How is is possible to do this? I have checked a few known script sites and even had a look on the Exchange centre - but haven't dug anything up - any ideas?

Much appreciated.

domedia
10-09-2007, 01:42 PM
You don't have to go to other websites, just view source..

<script type="text/javascript">
35 $(document).ready(function() {$("body").ScrollToAnchors(800,'bounceout')});
36</script>

I think it's calling that from JQuery, but can't say for sure, I don't know Javascript too well.