Get 25% Discount For HostGator- $110 OFF! | Series: Become a Pro Blogger!, Create and Sale Ebooks , PDF Editing Ways


Sunday, May 10, 2009

Create a Floating Feedback and Back-To-Top Button For Your Blogs



feedback and back to top button Asking your visitors to leave you suggestions or feedbacks can be pretty easy only if you provide them with an easy access to your feedback page. Readers are often lazy and getting them to leave a feedback is often tough. However you can let them comment willingly if you add a floating feedback button to your blog, that floats as a reader scrolls down or up. This floating button can be made more user friendly and eye-catching if you add a roll over effect to it. Hover your mouse over my feedback button at the bottom-left corner of this page and observe how the button magnifies when you hover your cursor over it. Liked it? Lets now learn the TNT of adding a Feedback Button to your blogs, along with a Floating Back-To-Top Button, which I will discuss later.

For a feedback button you will need two images, one small (30 by 145 pixels) and one large (35 by 170 pixels) You can also use my feedback button if you wish,

Small Image : small-feedback-button                               Large Image :  large-feedback-button

You will then need to upload these images to an image hosting web service like Photobucket or other services like Google sites and sigmirror

Get URLs for both these images and then follow the steps below

 

  • Sign in your blogger account
  • Go To Layout > Page Elements

Layout

  • Click on add a Gadget

add-a-gadget

 

  • Click on HTML/JavaScript

html-javascript

 

  • Now Copy paste the code below into the HTML/JavaScript widget,

<!--TNT-by-STC-FEEDBACK-IMAGE-STARTS-->

<a style="display:scroll;position:fixed;bottom:5px;left:0px;" href="URL Of Feedback Page" title="Your Feedback is always welcomed!"><img onmouseover="this.src='URL of your Larger Feedback button'" src="URL Of Your Smaller Feedback button" onmouseout="this.src='URL Of Your Smaller Feedback button'"/></a>

<!--TNT-by-STC-FEEDBACK-IMAGE-STOPS-->

 

Note:- Remember to replace the Colored text with the required detailed specified. You can change the text “ Your Feedback is always welcomed! “ with any message you like. You must have a Contact page, where users could fill up an Email form to send you their Suggestions. See my feed back page to get an idea, Click here!

  • Finally save your widget and view your blog with a floating Feedback button at the bottom-left corner of your homepage.

Add a Floating Back–To-Top button to your blog

If your blog’s homepage is really long or if you write lengthy posts then you must add a Back-To-Top button to your blog, by clicking which, users blog will be taken straight to the top (Header) of your blog. You can see my floating back-to-top button at the bottom-right corner of this page.

To add this button to your blog you will again need two identical images, one small and one large. May be you would like some of these buttons,

 back to top -large back-to-top-small-1                  hodge_podge-hodge_podge_icons-hodge_podge-left_arrow.ico-48x48  hodge_podge-hodge_podge_icons-hodge_podge-left_arrow.ico-32x32                 Up1Blue Up1Blue

Now lets learn on how to plant the TNT of adding a floating back-to-top button to your blog.

Follow the same steps as you did for adding the floating Feedback Button. Just paste the code below In your HTML/JavaScript widget,

<!--BACK-TO-TOP-STARTS-->

<a style="display:scroll;position:fixed;bottom:5px;right:5px;" href="#" title="Back to Top"><img onmouseover="this.src='URL Of Your Larger Button Image'" src="URL Of Your Smaller Button Image" onmouseout="this.src='URL Of Your Smaller Button Image'"/></a>

<!--BACK-TO-TOP-STOPS-->

Note:- Remember to replace the required detail with specific URLs of your Back-to-top buttons

Just save your widget and view your blog with a floating Back-To-Top button at the bottom-right corner of your homepage.

That’s All!



Respected Readers:
We educate thousands of bloggers a week with our tutorials. To help us go ahead with the same spirit, a small contribution from your side will highly be appreciated.


If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you subscribe to our regular Email Updates!

Thanks for making this possible! Kindly Bookmark and Share it.
Technorati Digg This Stumble Facebook Twitter
Create your own blog!

37 comments:

Comment Page :
Marg on 5:20 PM, May 10, 2009 said... #

Wow, how did you know I was looking for a way for people to give me feed back. I also am trying to find a way to put something on my blog so people can subscribe to it. You have looked at my blog, that crazy b2evolution thing. Do you have some kind of code I can put on there to get people to follow me??? I do know how to put codes on there now. LOL

Mohammad Mustafa Ahmedzai on 6:23 PM, May 10, 2009 said... #

Well Marg, there are many ways people can follow you. the most successful ways are,
1. Adding a Feedburner Link to your blog, just as I did for my blog (Those orange RSS icons)

2. Add Social bookmarking icons to each of your post. For that you will need to add a code to your Template.
I will write a post on it soon till then enjoy this one :D
Take care

Anonymous said... #
This comment has been removed by a blog administrator.
Arham on 7:57 PM, June 05, 2009 said... #

hello Mohammad Mustafa Ahmedzai

i am new to ur blog
and i luv ur blog too

but dude i try this trick in my blog but it is not working

u can c my blog

http://soft-tricks-by-arham.blogspot.com/

dude
i hve used this code

<a style="display:scroll;position:fixed;bottom:5px;left:0px;" href="http://www.123contactform.com/contact-form-arham_ali60-20309.html" title="Your Feedback is always welcomed!"> <img onmouseover="http://lh6.ggpht.com/_7wsQzULWIwo/SgXYBEuYoWI/AAAAAAAABC4/ASbEK0N1DUg/large-feedback-button%5B4%5D.jpg?imgmax=800" src="URL Of Your Smaller Feedback button"
onmouseout="this.src=�http://lh3.ggpht.com/_7wsQzULWIwo/SgXYAOstTYI/AAAAAAAABC0/YymzN1RPJFM/small-feedback-button%5B4%5D.jpg?imgmax=800"/></a>

Mohammad Mustafa Ahmedzai on 10:26 PM, June 05, 2009 said... #

hi Arham,
I am extremely sorry for the wrong code. When I inspected the code I found that it was broken. I have updated the code and now its perfectly fixed and working just fine.
Few things to note,
1. Replace the text with the required image URLS (Plz upload the image to your own image hosting service or account, don't steal mine from source :) )
2. Remmeber to add the URL Of Your Smaller Feedback button twice not just once. The code that you provided me above shows that you haven't replace the text URL Of Your Smaller Feedback button with the required URL

I hope this will help. Feel free to ask if you troubleshooted yourself

Nidhal Abu-Khalaf on 11:55 PM, September 23, 2009 said... #

Hi,
How would I make the floating button float in the middle rather than the bottom? I tried using position:middle and position:center with no success. Any help would be appreciated. :)

Mohammad Mustafa Ahmedzai on 1:42 AM, September 24, 2009 said... #

@Nidhal
Simply change bottom:5px; to bottom:210px;

You can change the value 210px to shift the Icon up or down

Lost Soul on 12:04 AM, October 19, 2009 said... #

mine doesnt change to bigger one, tried several times

Mohammad Mustafa Ahmedzai on 4:14 AM, October 19, 2009 said... #

@last soul

I am sorry for the inconvenience. Sometimes HTML Editors really make mess of the code. There was only a mistake in the orientation of a single quote i.e ''

I have corrected the code. It will work just fine now :>

Lost Soul on 2:18 PM, October 19, 2009 said... #

thanks brother it works perfectly now..

Hannah on 8:10 PM, October 23, 2009 said... #

Can you mention how to make the borders that you use?

The feedback and to the top buttons overlap to the blog posts themselves. If not the borders I guess you would change the size of the widgets, posts, etc areas so that the feedback and to the top tabs don't overlap to cover information already on the blog.

I hope that makes sense. You can see a visual on my test blog: www.nopey-h.blogspot.com

Thank you again.

Mohammad Mustafa Ahmedzai on 3:42 AM, October 25, 2009 said... #

@hannah

Sorry for late reply dear. Well you can surely reduce the side padding of the over all layout by adjusting the wrap {} width property and by replacing it with this

#wrap {
background: #fff;
width: 960px;
margin: 0px auto 10px;
padding: 0;
position: relative;

}
but then a mess up will occur and further alignment settings will be needed which will be difficult for your to implement unless you are well aware of CSS padding and margin property.

A short way would be that create a small feedback button of 12 pixels in width. That will look better and will not overlap the content.


I hope that was clear.

Mohammad Mustafa Ahmedzai on 3:51 AM, October 25, 2009 said... #

@Hannah

Since I have never left a reader without a solution so I was forced to find an easy way for you. Do the following

Search for,
#outer-wrapper {
width: 980px;
margin: 0px auto 0;
padding: 10px;
line-height: 18px;
}
#main-wrapper {
float: left;
width: 600px;
margin: 0;
padding: 0;
}

And replace this code with this,

#outer-wrapper {
width: 950px;
margin: 0px auto 0;
padding: 10px 20px 10px 20px;
line-height: 18px;
}
#main-wrapper {
float: left;
width: 550px;
margin: 0;
padding: 0;
}



I hope things will look far better now :D

Peter on 2:15 AM, March 27, 2010 said... #

Hi! Thank you very much for this informative article - worked like a charm.

Now!

I played around with this in order to have the same thing happen for a changing image on mouseover in my post.

I changed the image style to:

1. img style="display: block; float: none; margin-left: auto; margin-right: auto"

2. Removed the link to the contact page.

It worked like a charm as well on IE8, Firefox, Opera, Google Chrome and Safari.

Do you see any problem with doing this?

Take Care,
Peter

Mohammad Mustafa Ahmedzai on 8:50 PM, March 28, 2010 said... #

@peter
Bro Glad it worked for you!
The code is well compatible and correct. Good to see you are learning fast. Keep it up! :>

Anonymous said... #

Hi,

Great and simple - many thanks.

However, "display:scroll" is not valid CSS. What is it used for, as the "position:fixed" seems to be enough?

Thanks!

kcblogger on 12:10 AM, June 01, 2010 said... #

sir ,
i am subhrajyoti , i have a blog

http://krazzycollections.blogspot.com


I want to use floating follow(google friend connect) button using html. please reply

jessica penuliar on 1:04 PM, September 23, 2010 said... #

hi... i'm using the classic template and perhaps it's the reason why the code isn't working on my blog. jpenuliar.blogspot.com can you teach me how to put this code using the classic template? thanks.

games on 10:18 PM, October 01, 2010 said... #

great trick.thanx i luv u

Gazzan on 4:31 PM, November 30, 2010 said... #

Assalamu Alaikum Wa Rahmatullahi Wa Barakatuh,
dear brother ,
I have added "Back to top Button" in my Blog.
its simple,
anyway Very Thanks to your guides.
Keep it up.
Allah Bless you.

Woozgulf @ Fresh History Articles on 9:26 AM, December 28, 2010 said... #

Here is a back to top script that will get larger on hover for your blog as a gift for your awesome tutorials:

https://sites.google.com/site/anims101/downloads/go_to_top.html?attredirects=0&d=1

Anonymous said... #

This doesn't seem to be working.
Here is a link to my website: http://environment.ucoz.com/
It works on firefox but on IE7 it doesn't. COuld you help me please and thank you in advance

Anonymous said... #

THis doesn't seem to work on ie 8. COuld you help?

Mohammad Mustafa Ahmedzai on 3:16 PM, January 11, 2011 said... #

@Anonymous

The link works on all browsers. Kindly follow the steps again. I have rechecked the code.

Forhuntersbyhunters on 1:59 AM, February 04, 2011 said... #

back to top doesn't work on one of my blogs...
I put in this code:

Arrows do not change size and a my widget box opens not my top of page.
Can you explain to me what I have done wrong or will this now work in blogger widgets but must be places in html body?
www.fhbhinseason.blogspot.com

plaban on 7:32 PM, March 19, 2011 said... #

back to top widget is working great,thanks a lot.

Ankit on 11:03 AM, April 16, 2011 said... #

Really awesome dude.
- Tlasto.com

Anonymous said... #

Uhmm. Where do I place the code when I'll place it on HTML?

Mohammad Mustafa Ahmedzai on 7:58 PM, April 26, 2011 said... #

Kindly paste it in HTML/Javascript widget and place it anywhere you like. Position of the widget doesn't matter.

rin on 2:28 AM, May 10, 2011 said... #

thanks for the great tips, simple and clean, easily understood by average blogger like me :D (managed to get those buttons up with just a bit of a modification to the codes).

Tamilsms on 4:18 PM, July 19, 2011 said... #

Thanks a lot man..... its work great.....

Saurav Chatterjee সৌরভ on 10:54 AM, September 15, 2011 said... #

Thanks A lot !
Loved the buttons.. !

Danial on 9:51 PM, December 06, 2011 said... #

thanx for sharing floating widget script
http://www.x9wallpapers.com

man on 12:24 PM, December 09, 2011 said... #

thanks for sharing...

Kelly on 12:11 AM, December 11, 2011 said... #

Hi,
I love your blog, its so helpful!!!
I tried using this code for my blog and everything worked except for the picture of the arrow I used. Im a little confused, then I tried using an arrow I have hosted on photobucket and it showed a box on my blog where the arrow should have been that said "this link doesn't work".
I put down my email address to receive the buttons but never got them. I will wait for your help before trying it again.

Thank you very much!!!
Kelly

DebbieNavarro.Blogspot.com on 11:54 AM, February 11, 2012 said... #

your site really helps me a lot on my blogger ill stick with you.
your an angel.. such a genius.:-) thanks

arhamvhy on 5:04 AM, February 12, 2012 said... #

nice tutorial..

this very useful..

Confused? Feel free to ask

Your feedback is always appreciated. I will try to reply to your queries as soon as time allows.

Note:
1. To add HTML CODE in comments then please use our HTML Encoder
2. You can always Try the tutorial on our HTML Editor
3. Please do not spam Spam comments will be deleted immediately upon my review.

Regards,
Mohammad

 

Recent Posts

Join Me On Facebook

4907+ Followers

Join The Team!

Licensed Under CC

Recent Comments

Follow Me On Twitter

1954+ Followers

| My Blogger Tricks (MBT) © 2012. All Rights Reserved | Contact | About |