Back to vBulletin 4.x Template Modifications

Create "Back to top" button using jQuery in one step.
Mod Version: 1.00, by xixxon

vB Version: 4.2.0 Rating: (15 votes - 5.00 average) Installs: 81
Released: 30 Jul 2012 Last Update: Never Downloads: 0
Not Supported Re-usable Code Translations  

Demo: https://noct-test.blogspot.com/2011/01/ai-duong.html

Instruction:
Find template footer.

Insert at the end.

Code:
<style type='text/css'>
#bttop{border:1px solid #4adcff;background:#24bde2;text-align:center;padding:5px;position:fixed;bottom:35px;right:10px;cursor:pointer;display:none;color:#fff;font-size:11px;font-weight:900;}
#bttop:hover{border:1px solid #ffa789;background:#ff6734;}
</style>
<div id='bttop'>BACK TO TOP</div>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'></script>
<script type='text/javascript'>$(function(){$(window).scroll(function(){if($(this).scrollTop()!=0){$('#bttop').fadeIn();}else{$('#bttop').fadeOut();}});$('#bttop').click(function(){$('body,html').animate({scrollTop:0},800);});});</script>
Done.
Hope you like it !

Download

No files for download.

Similar Mods

Show Thread Enhancements Bring Back "Go" Button for VB4 by BOP5 (Forum Jump/Quick Navigation menu) vBulletin 4.x Add-ons

vblts.ru supports vBulletin®, 2022-2024