Description: Smooth scrolling pages up. Useful when the post is long, or just for fun.
Author: unknown [minor changes by FTH & all4phone]
BBCode requires the jQuery library. If you don't have already this code on the board (forum), put it in a overall_header.html file, before the </ head>:
Code: Select all
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
Code: Select all
[top][/top]
Code: Select all
<script type="text/javascript">
$(document).ready(function() {
$('a[href=#top]').click(function(){
$('html, body').animate({scrollTop:0}, 'slow');
return false;
});
});
</script>
<a href="#top">{L_BACK_TO_TOP}</a>
Helpline:
Code: Select all
Moves smoothly to the top of forum [top][/top]
Code: Select all
[top][/top]