![]() |
Create "Back to top" button using jQuery in one step.
1 Attachment(s)
Demo: http://noct-test.blogspot.com/2011/01/ai-duong.html
Instruction: Find template footer. Insert at the end. Code:
<style type='text/css'> Hope you like it ! :D |
Great. Thank You ;)
|
nice one. If I may add
Code:
{vb:rawphrase top} Code:
<div id='bttop'>BACK TO TOP</div> |
Quote:
|
Quote:
in headiclude before that < script yahoo blah-blah-blah > a add this as i'm using it for something else as well Code:
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script> Code:
#bttop{ in the footer on the very end as you said Code:
<vb:if condition="$show['member']"> P.S.> sure I got an opensourse icon from opensoure-icon-web-site and up it into images/misc folder Thanks again Kinda lost the concept of one step but I like the things in own place it helps avoiding duplicate redundancies |
Thanks a nice idea
Code works fine with VB4 But does not work with VB3 Please tell me how to make it work with VB3 with my best regards |
Awesome mod we love it.
Just one problem with VB CMS on our home page its interfering with our slider vFCoders - Featured Content Slider Widget (was not able to change images/articles. Is there an easy way to exclude/disable it from a page or url? |
Quote:
|
Quote:
Thanks. |
Great, works fine
G! |
Quote:
|
Its the same like this:
https://vborg.vbsupport.ru/showthread.php?t=243771 |
Quote:
Code:
<vb:if condition="THIS_SCRIPT != 'calendar'"> |
Its vbcms
|
Quote:
Code:
<vb:if condition="THIS_SCRIPT != 'vbcms'"> |
Quote:
|
Quote:
When one opens the page at first the button is there, how to make it dissapear and appear only if one scrolled down a little. The very first time. You see I gotta stop doing this. I mean asking then thinking lol $('#bttop').hide() |
hi
Please tell me how to make it work with VB3 thanks |
Quote:
Quote:
So sorry, anyone help him plz :o |
Quote:
|
use this for asap
{scrollTop:0},100) |
Is it possible to amend a posters post options:
Edit Post Reply Reply With Quote And simply add the Top word here, so that if someone clicks it, it brings them to the top of the thread? Edit Post Reply Reply With Quote Top |
Quote:
Right ? :o |
<i>Thanks for the easy mod.</i>
|
Smoother than a babies bottom.
Installed. |
Nice :)
|
excellent mod - thanks.
|
Thank You
|
Thank you ;)
|
Excellent!
|
thanks
|
This is good to play around with. Works as it should.
|
1 Attachment(s)
I use
Code:
<a href="{vb:raw relpath}#top" onclick="document.location.hash='top'; return false;"><font color="maroon"><b>{vb:rawphrase top}</b></font></a> btw, without trying this one by xixxon what is it meant to do? scroll slowly or something?? :) |
It does scroll slowly but I guess that can be changed.
I just like the effort the guy made and shared with all and sundry. I am now using it with opacity and border radius. Looks ok and behaves well. Cheers xixxon. I wish I could could be as inventive as you are. I like this idea too but can't seem to get it visible. AURFSCAN https://vborg.vbsupport.ru/showthread.php?t=311269 |
1 Attachment(s)
Ok.. I like it, thx xixxon
I use existing stylevars to match forum style add div code to footer but add css code to additional.css border - forumhead border color and width background - forumhead background color hover background - footer background color or could be #color to suit eg. shades darker padding - whatever looks good border radius - browser compliant Code:
#bttop {border:{vb:stylevar forumhead_border}; background:{vb:stylevar forumhead_background}; |
I was needing this :D
In case I wanted to add a button that scrolls to the last post of a topic, I think it would be cool too |
dont work with 4.2.6. php 7.2
|
All times are GMT. The time now is 09:11 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|