January 4, 2009

Add Floating - Back To Top Button/Image In Blogger Blogs


If you have some longs posts, or if some loyal visitors, who love to comment a lot on your blog, then it may create a small problem to other visitors, who would wish to come quickly to the top of the blog, after reading a post and it's comments.

So to add a short-cut for them, would be a good idea in this case. For this you can easily add a "Go to Top" arrow button, which keeps on sliding as the readers reads the post, and whenever clicked by him/her, it will escort them to the top region of the blog [See this in action in this blog - Right corner].

Log in to Blogger
Go to Layout -> Add a Gadget -> HTML/JavaScript type

Then paste this code in to it:
<a style="display:scroll;position:fixed;bottom:5px;right:5px;" href="#" title="Back to Top"><img src="http://i34.tinypic.com/35lyjrb.gif" /></a>
And of course you can use other images too, by replacing the red part of the code above, try some of these:

| | | | |

And in case, you have Adobe Photoshop installed in your computer, then you can download a PSD image [Image shown above - with all arrows in it], and edit to get the arrows from it
[Download from Devianart]


57 comments:

snam said...

Great widget! Thanks for sharing!

snam said...

Hey, my button is gone and it was there yesterday. What is wrong? My blog where the button is missing: http://howtoearnmoneyonline-snam.blogspot.com/

Divya Sai said...

Its not a coding problem, actually, the image is hosted at Gigaimage, and i think there's some server problem at Gigaimage, so the images are not loading from them......you can host the image anywhere else and use the same code !

Anonymous said...

:D

இமயவரம்பன் said...

Thanks

M.GUSOON said...

thankyou for this page

Blogger Templates said...

Welcome guys !

Sai

Mohammad Mustafa Ahmedzai said...

I am in love with your blog. You just rocked me with tonnes of tips and tricks. I just added you to my follow list.
This tricked worked for me. But I want a Back to Top button just like yours. Tell me how to get it


Regards,
Learn how to increase your Computer Speed

Mohammad Mustafa Ahmedzai said...

haha I got one just like yours by stealing the code from your source file. Credits goes to you.
To see the result visit,
Learn how to increase your computer speed

Regards,
MOHD___

Peter said...

Hi! I would like to thank you for all your help, not just here but throughout your site.

One question, if I wanted to add one to take me to the bottom of the page, how would I change the code?

Take Care,
Peter

Divya Sai said...

Hi Peter,

thanks for your kind comment...
to link the bottom of the page simply make this change in the above code:

change
href="#"

to
href="#footer"

that's it !

Regards
Sai

Peter said...

Hi Sai! That was quick. You're certainly on the ball with your answers! You are to be commended again for your great work! I'll amend the one I'm working on.

Take Care,
Peter

bloggerstop.net said...

:)

selvaraj said...

Hi "Brilliant".

You are doing a wonderful job here.

Thanks,
Selvaraj

Divya Sai said...

Hello Selvaraj !

Thanks for the encouraging comment...
You are always welcome here !

Regards
Sai

AWoWAddict said...

I have a question. How do you make your back to top button grow on mouse over?

Divya Sai said...

Hi A WoW Addict,

ACtually that's a simple combination of 2 images of different sizes, which change themselves on mouse hover,
You'll better understand that through this post:
http://bloggerstop.net/2009/01/create-html-button-for-your-blog.html

AWoWAddict said...

Thanks! The button is working perfectly.

pinaysexvideos said...

This tutorial is very useful. But what codes do I need to add if I also want a "Go To Bottom" button? A "Go To Bottom" on the top-right side and a "Go To Top" on the bottom-right side of my blog's page. I'm gonna have to follow your blog... :))

Divya Sai said...

Hi...

In the code above, change this:
bottom:5px;right:5pxto something like:
top:25px;right:5pxRegards
Sai

viknesh said...

HOW U CHANGED UR OLDER POST ICON...
?

chinna said...

can u plz tell me how to show html codes in blogger posts the easy way please
jayarajyadav

Mia said...

Thank you for your " Uncomplicated code " you have made my life much easier today ! :) Wishing you much success in all of your life endeavors . Have a great summer !

Divya Sai said...

Welcome Mia and thanks for your good wishes !
You are always welcome here :)

love2cook said...

Hi Divya...u r doing a gud job! I'm new in blogging, learning alot from ur tips n tricks...thanks yaar! ;)

MattyJerry said...

This is great, I have put both go down and back to top button, but so far they are both pointing up. I think i need to find to same type image one pointing down the other up.

can you please tell me how to have the one like yours in this blog. The one that grow when u move the cursor on it.

I am still making my new blog

MattyJerry said...

I have just added an animated Go Down and Back to Top button. at my blog http://sportsnews247.blogspot.com. I am not working on blog tips but feel free to ask.

Thanks Divya.

Nur Abadi said...

.wow..owesome idea..
.excuse me for copy it to my page...
. :). :). :). :). :)

ramlan said...

perfectly, is working good, my i can get any trik author???????? like ads pop up menu ;))

Divya Sai said...

Couldn't get you ramlan...you want to know how a pop-up menu is added?

ZaaRz said...

WHooaa... it worked ? hehe.. just wonder if we can alter the coding of the top button to make go to old posting.. http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/1.gif

Darshit said...

thanks a lot. Great tip.
see at my blog.

hackrishna said...

hiii, hackrishna here....

Well Sorry 2 say that the footer trick isn't working !
I hav done everythin as uu said...but........
Pls Help Yaar.....

Thank uu 4 Spreading all dose Knowledge, but pls dnt 4get 2 find a solution 4 me.

Divya Sai said...

Do not use gigaimage to host your images, rather use tinypic.com
and the widget will start working.

GuruG said...

hi, this Button is very nice and useful for all, but i want "Go to Bottom" button in my blog (animalszooguru.blogspot.com). Please provide me the code.

Thanks.

Divya Sai said...

In this tutorial I have used
href="#"

where the target (#) takes you to the top of the page, so instead of that make an anchor yourself something like #bottom
and then link a floating image to it. For this image, position should be a few pixels from the top instead of bottom.

To know more about anchors, read this tutorial, and everything will be clear to you:
http://bloggerstop.net/2009/01/how-to-link-different-parts-of-same-web.html

Regards

Tommy 234 56 said...
This post has been removed by the author.
Divya Sai said...

This is the part of the code, that fixes the button on screen:
style="display:scroll;position:fixed;bottom:5px;right:5px;"

so you can see that display is scroll
position is fixed
now, simply change bottom:5px
to
top: 25px; (or any other value)

and also change right:5px;
to
left:5px;

and then change the url of the image.

Tommy 234 56 said...
This post has been removed by the author.
Divya Sai said...

okay, in that case
change
position: fixed;

to this:
position: absolute;

Tommy 234 56 said...
This post has been removed by the author.
Tommy 234 56 said...
This post has been removed by the author.
Blogger Widgets said...

Well I couldn't get your question completely, but presently it is not showing up in your blog, because the code you are using is not positioned correctly, use this code instead:

<a style="display:fixed;position:absolute;top:5px;left:5px;" title="Welcome to Tommy's Club Penguin Cheats!"><img src="http://i35.tinypic.com/okv2v4.jpg"/></a>

and to add another image(at right side), use this code:

<a style="display:fixed;position:absolute;top:5px;right:5px;" title="Welcome to Tommy's Club Penguin Cheats!"><img src="http://NEW_IMAGE_ADDRESS.jpg"/></a>

Tommy 234 56 said...
This post has been removed by the author.
Tommy 234 56 said...
This post has been removed by the author.
Tommy 234 56 said...
This post has been removed by the author.
Blogger Help said...

In the a tag, simply put the href, like this:

<a href="http://TARGET_URL_ADDRESS.com" style="display:fixed;position:absolute;top:5px;left:5px;" title="Welcome to Tommy's Club Penguin Cheats!"><img src="http://i35.tinypic.com/okv2v4.jpg"/></a>

Anonymous said...

:D
THANKS

Chi Haw said...

help,

working on ie but not firefox.

http://chihaw.blogspot.com/

Divya Sai said...

Hi there,

I have checked your blog in IE, firefox and opera. It is working perfectly in all three browsers.

Chi Haw said...

huh? weird..

maybe something's wrong with my browser.
thanks.

Jordi Coll Corbilla said...

great job!. It works perfectly!.
You can check it on my blog:

thundaxsoftware.blogspot.com

thanks!

Marilyn G Russell said...

Thanks for the button to the top! Woks perfectly.

Dont Let Them Hurt Our Children said...

Thank you
just what my blog's needed :)

KATUMIRI said...

;) nice share

SAMEERA said...

hey Divya..i want ur bloger back top Button its cool Button.please give me..it cord..it big help me..thanks..;)

Moch. Erfan said...

how to make back to rop like this blog???

:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))

comment on this post Share Your Views

Allowed HTML tags: <b>, <i> and <a>

Join and share your views with other bloggers at BloggerStop Community

Comment Like This! and Optimize your blog...

SPAMMER OF THE MONTH: www[.]Seeking4Hosting[.]com

Next Post Homepage Previous Post

Regular Readers


What They Say...

Divya Sai is the ingenious webmaster of Bloggerstop.Net. Divya is extremely patient, knowledgeable and responsive... Bloggerstop.net has an abundance of articles on creating widgets, templates, hacks and ways to make your blog search engine friendly.
- Stacey @Pets With Allergies
I stumbled onto a great site. Sai, over at Bloggerstop.net has helped me tremendously and with great patience...for any and all questions regarding computer issues. And again, THANK YOU Sai.
- Cheryl @Cmash Loves To Read

More Here...

Popular Posts

Get this widget

| © 2010 BloggerStop.net | Blogger Widgets | Template by Dicas Blogger | Enhanced By Divya Sai | Privacy Policy