Today we’ll learn a very easy and important trick, Specially if you have got a lot of content on you blog pages, And if you want your blog to be easy to use for your visitors, A back to top link or button on your blogspot blog will make it easier and faster to your visitors when it comes to fast exploring and browsing.
Ad
Now we’ll see how to add
  • 1. Image Back To Top Buttons With 19 Different Styles
  • 2. Text Back To Top Link with different styles And Colors
1. Image Back To Top Buttons With 19 Different Styles
Step 1
Ok, now go to your blogger account and go to, Dashboard >> Layout >> Edit html >> and please find the following code.
 ]]></b:skin>
And before it add this code
 #backtotop {
padding:5px;
position:fixed;
bottom:10px;right:10px;
cursor:pointer;
}
Step 2
Now find the following code.
</body>
and before it add the next code.
<a href="#" id="backtotop"><img src="Image-Url" alt="back to top" /></a>  
But before adding this code to your template please choose your favorite button of the following And change the words in red, Image-Url to the button url.
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8ry1sHBHuocIdP-YX9Rp1Xveavj51Zm6MqTCaoJpTWKZaFzpU7iAYIVddbjO0yh_Xx8EwpV7JBnl0l7qDar3e0Txcs5frrP2k_ohC1sDWEru0u5gzIcQcTP6X2jYWltxhZdLi_UcCAt-2/s1600/bttp-5.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhUp5-qwPnByh88kGaxrabSIFGt1TwgGeUu9ZeL6VJxM2OkNPBMCsqz8OkB4fRH2rRoenidRPBaquvDB8OKaNEl5T_460Hsq-WOTSmmrqisHZqFRg0Thw-o2fIw4PIH9_Bv8WOzsMJe2ll/s1600/bttp-4.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzT-5cNvSFJxjgno9zetmyEZeV4cEfY_4-Nb621OqhLQ-vyYVcANwGCf7TAktIi84HyVvt2IIieryVCJ1SAgBxrgt12iQVcqnWkCfF1McxJXsW6D1fRqJ4YKxRU1JFAWuWUThSPA88wZe2/s1600/bttp-3.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqg9eIAmB8lNcpdXJXyKBz61gloS3jIKqELxJxTVaxLnRVYUEu0z4Mp-n4UREKeRRKJ_cHpXJsbIPGqaujXlkz3i9808KQyJud5Hy5oT3uz7vWfjjW1R1JxGYTqI347i6HFCVFGdjpAQ0E/s1600/bttp-1.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkJQqGb4ZnMvs9IwNgnc6qHjj92W-kZ3qkdVbGOu7pO_T935gBES8ZemMPQ1h9WHlVwNCwDbylClrEnOnO0br3VJSexzw5WSqL-SqxHTfF-YEKSlpUx6O2vA81d6qQD6qBhIuLuzdONsFP/s1600/bttp-2.png
back to top For Blogger
http://4.bp.blogspot.com/_JwD5r652h00/SvDBBZGgr-I/AAAAAAAAAQg/1X96vgeWqaw/s400/bttp-6.png0/bttp-7.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNY7IdFDoBZioM3_Qj9hlfBLccTbhfhjOKOwyLFPjbRF7giXt6i9_DHUIvEEugWLWBRIiHAFl6ASEXsgnO4i3bBjz2dCMLAI2UhC-4KgDRvS5l3D833wG0LdLvie8hvYz5YH4suZoBfqBM/s400/bttp-10.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVaNsw5Nm-cXh2pNsSicYHBuhCylM2HOKnP91Da17aub0C5kyLlABWB_zWntndFeqZdJqnrJnVJGKhqcPUnuqLIMhelXh8UEakNUvCf6UF20cuIEOEGb68-hMAA-TDIaKBRydSCThAjgxb/s400/bttp-9.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguS1kOIYamhjnsJWs0qrqfodCwJ9-xN1zZqQ7cVsy1gmGgRmQ22pXRmrCl7Uhz_lIcbAtm4b_4imJ-ZVxh_xF3pQgk74eeyD5hYYvRhKvrZsHWtXI-m4ktJEmf-95ntAhizDWDtK0j36iJ/s400/bttp-8.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheLCkmpy96KW9AwPiRj__gguUPEYvGDKpfbQrU87IrmZt1LvLqQPrbTNX-nQrn0lvdDmlZJZo8lDrRRE4VsuCIDu6u7ygkGLxAEh5U0sseQtsqBrUjEiIFuTynSNnkDbwy1eBABoqwl9Vu/
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIpMXzq6ng5MhU9xlfUhf3nb9Rg7MHoqNgDB6sTf76hHvOYeoowOLBORF62igfoKgWy518FgAs8vsjY0dY5qdcQ9Gxz-3KD0Q753_Bx6miofX3nf61KKZ_362_vJdHewnL9VR9jw-FsCWG/s400/bttp-11.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuo81WepIicc9XZGZd_RSYKDXKd06ECXeffFr3nUX1aPFPilCq9dFHTgyIak-hSrb_yaVp7OaaO1xVuD2hgP6WBeMczYkE6_MKNMR3FxgKJXO8bk1ys4ZBn11hArajrDkk9CzEJLaq7hJi/s400/bttp-12.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqRC0omkHw3tiH9OPBmCQPQdlV18n7c4wXodmLmcSNI54J-8vqXBKCixaZaDUeIwLJnhN3WpOn79u6eXnVXWyAik9BGhGWCKVQLFLzofPnSF0KyNbPzl4Pobz7w-XGpYF1u2KULe15rrwL/s400/bttp-13.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ0j5pdk6RKQiCDeSGLmxmeD919nLEz0XliwvUa6sFUYyEGzqNm1nk744CV4r6KsD2St29iP4YRBmoJQwecx2nxzyIT5qessyUJoypFpC2F2E_HFROdJCLGlNlrnalBXAxTZpMjwLmsyhg/s400/bttp-14.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb6vTGdzqC5m5Jrmd8IZyb9A8QeMQqSZymLKMJ9qoeqtIX3_ncY5qBA5CdWQTYS49bHcbzkpT570rNw8B7hCNcdSxEp8Q-39vG9hSAPhcFZ7TBR1TdF5GCrjzI5_Csn5LbvKArjMaflSWq/s400/bttp-15.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIUxVhxzoueqn0NzdJ6CsOrynrIXE6BlMasBbhBc3eWRrGb_wZzcsovAiAvnyUcKU7O0SNbhgO2F_MJ0qc7F3J_C-bqjn7qczW35pi97wTLQMa5yO7ST0fKOV_-arK2vWBxCu9qDyl7-Er/s1600/bttp-16.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUkTBp61db_VS_2Evl2GRe2OzrwtMNm3f8okVnESkcffbOpxt1vGaQt5KGnFuhuiGDIbo5cweiTgY37_2Y2VBnKEXzpSMRmSWjyQ60EOiU2C0wzM082vDUWypom1Jo4GbZTpFVHBiqIsmT/s400/bttp-17.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdcnMFcc7LL8kJtMkD8uHZ5IPtJNmq_9PajemmQuCmZMd2oACYMDK-_EV6D4mrqR24xH_nQs-v5w1wxarKoWEqWWh193_ky7LDLt9_uzuGbRNx1vzkomsRZBpvQeyXz50M4PguNRzTX4uM/s400/bttp-19.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOBODU3Vyz18PaUQZZAq27zm9WUMOcyYJOgySZXO4t1vCaM28-rrEkSKqJT8FU-ykXKd1L-Cw_ICzyddgfActISIrGv_qk_H6fXfBkZSfNZKPo32BscQbmfVt6kRvLHhhZQOmQkyEROYuJ/s400/20.png
After Replacing the Image-Url with your favorite button url, it should looks like this
<a href="#" id="backtotop"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOBODU3Vyz18PaUQZZAq27zm9WUMOcyYJOgySZXO4t1vCaM28-rrEkSKqJT8FU-ykXKd1L-Cw_ICzyddgfActISIrGv_qk_H6fXfBkZSfNZKPo32BscQbmfVt6kRvLHhhZQOmQkyEROYuJ/s400/20.png" alt="back to top" /></a> 
paste it into your template code,
Step 3
Find the following code
<head>
And paste this code after it.
&lt;script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js'
type='text/javascript'&gt;&lt;/script&gt;
&lt;script language=&quot;javascript&quot;&gt;
$(window).ready(function(){
$('#backtotop').click(function(e){
e.preventDefault();
$('html, body').animate({scrollTop:0}, 'slow');
});
});
&lt;/script&gt;
and then click Save Template
And you are done.
2. Text Back To Top Link with different styles And Colors
Step 1
Ok, now go to your blogger account and go to, Dashboard >> Layout >> Edit html >> and please find the following code.
 ]]></b:skin>
And before it add this code
#backtotop {
width:100px; /* Change Box Width*/
background:#F4FFBF; /* Change background color*/
border:1px solid #ccc; /* Change Border Style*/
text-align:center;
padding:5px;
position:fixed;
bottom:10px;right:10px;
cursor:pointer;
color:#666; /* Change text color*/
text-decoration:none;
}
And please change it’s properties to fit and blend with your blog template,
Change 100 to lower or higher number to increase or decrease the size of the box.
Change 1px To change the border width.
Change #ccc to your favorite color code change the border color.
Change F4FFBF to your favorite background color code.
Change 666; to your favorite Text color code.
Note : You can get your favorite color codes via our new hex color codes generator here
Step 2
Find the following Code :
</body>
And before it, Paste the following code.
<a href="#" id="backtotop">Back to top</a>
To change the text on the button, just change Back to top to what ever you want,
Step 3
Find the following code
<head>
And paste this code after it.
&lt;script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js'
type='text/javascript'&gt;&lt;/script&gt;
&lt;script language=&quot;javascript&quot;&gt;
$(window).ready(function(){
$('#backtotop').click(function(e){
e.preventDefault();
$('html, body').animate({scrollTop:0}, 'slow');
});
});
&lt;/script&gt;
and then click Save Template
And you are done.

0 comments:

Post a Comment

 
Top