I have seen that a significant number of those utilizing
toolbars, for example, Wibiya have needed to remove it because of interfering
with the execution of a few scripts like Scriptaculous and Prototype, while
others have decided to remove these scripts just to continue utilizing the
toolbar.
All things considered, for those who want to have a custom
toolbar that does not give them such issues and permit them to keep utilizing
different scripts, here how to make our own floating toolbar with a close
option.
Adding a custom Sticky Toolbar on Blogger
Step # 1: Login to your accoutn and go to Template > Edit HTML
Step # 2: Now, click inside the code area and Click CTRL + F key and open search box
Step # 3: copy the following code and paste in the search box and find it.
]]></b:skin>Step # 4: Now above ]]></b:skin> add the following code
#custom-toolbar {
overflow: auto;
position: fixed;
background: #1B1B1B url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyqo4ygK3SE057hxFmiGlqb20EKSgoLIzHwF3eiA8AyLghgEkkrmnykP8fs49afm2BBPDHp0I71g8uJynHxHJiFt6inGoO8SiSNllc5axmGS5T-VWWD45mk1dZIgi7zMQbbn_k40ccd3yW/s1600/pagelist.png") repeat-x scroll 0 bottom;
font: bold 13px/17px "Helvetica Neue",Helvetica,Arial,Geneva,sans-serif;
height: 33px;
margin: 0 auto;
width: 100%;
bottom:0px;
right:0;
}
.close-toolbar {
float: right;
margin-top:6px;
padding-right: 10px;
cursor: pointer;
}
.search-text {
color: #D1D1D1;
text-align: center;
border-radius: 10px;
}
.google_translate:hover img {
filter:alpha(opacity=0.90);
-moz-opacity: 0.90;
opacity: 0.90;
border:0;
}
Step # 5: Now find out this tag
</head>Step # 6: Now above the </head> tag add this code
<script type='text/javascript'>Step # 7: Now find out for the </body> tag and just above it, add this HTML code
// Custom Toolbar for Blogger (helplogger.blogspot.com)
//<![CDATA[
var toolbar_blogger = new Array();
var toolbar_clear = new Array();
function toolbarFloat(toolb) {
toolbar_blogger[toolbar_blogger.length] = this;
var ftrpointer = eval(toolbar_blogger.length-1);
this.pagetop = 0;
this.cmode = (document.compatMode && document.compatMode!="BackCompat") ? document.documentElement : document.body;
this.toolbsrc = document.all? document.all[toolb] : document.getElementById(toolb);
this.toolbsrc.height = this.toolbsrc.offsetHeight;
this.toolbheight = this.cmode.clientHeight;
this.toolboffset = toolbGetOffsetY(toolbar_blogger[toolbpointer]);
var toolbbar = 'toolbar_clear['+toolbpointer+'] = setInterval("toolbarFloatInit(toolbar_blogger['+toolbpointer+'])",1);';
toolbbar = toolbbar;
eval(toolbbar);
}
function toolbGetOffsetY(toolb) {
var toolbTotOffset = parseInt(toolb.mtasrc.offsetTop);
var parentOffset = toolb.toolbsrc.offsetParent;
while ( parentOffset != null ) {
toolbTotOffset += parentOffset.offsetTop;
parentOffset = parentOffset.offsetParent;
}
return toolbTotOffset;
}
function toolbarFloatInit(toolb) {
toolb.pagetop = toolb.cmode.scrollTop;
toolb.toolbsrc.style.top = toolb.pagetop - toolb.mtaoffset + "px";
}
function closeTopAds() {
document.getElementById("custom-toolbar").style.visibility = "hidden";
}
//]]>
</script>
<div id='custom-toolbar'>
<img border='0' class='close-toolbar' onClick='closeTopAds();return false;' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU37T_ecAF8SERQ3zMk-mpp8AFW2oirCjvuRp4eLPxZnZ6Lxmgo8sPzPzh67CZWA63o3yCAOZ_R-ERQIGSP6vmDgEnb-bh_nq0671KOhUxKxaa6viQWLiftXtMnjJh-78BKd3GuOi_o35J/s1600/close_button.png' title='Close' width='17'/>
<table border='0' cellpadding='2'>
<tr>
<td style='padding-left:30px; padding-right:50px;'><form action='/search' id='search' method='get' name='searchForm' style='display:inline;'>
<input class='search-text' name='q' onblur='if (this.value == "") this.value = "Search here...";' onfocus='if (this.value == "Search here...") this.value = "";' size='28' type='text' value='Search here...'/></form></td>
<td style='padding-left:20px;'><a href='http://www.facebook.com/username' title='Follow on Facebook'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdbmedJylp58cjPyUAPFniE1a3Dt7kviCbjNtBP5holBkmHGNuOOiAW3hyphenhyphenS2RRz87CpReF71Mb7A2by3V7lCcYcv8HHptWFcVuJBSMSoHnVuWxrldeKzUMZTRU-GCxEf1K1JbYmTL-WpBS/s1600/facebook-icon.png'/></a></td>
<td><a href='http://twitter.com/username' title='Follow on Twitter'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPFa1JLSTts-xBWEoFAZcQljsW3gWcYG93KOwaBYxDBsC70YShEKlyRltXe6lxGZgpcfdEy7vqzjQpbSPtdMaTJ6po7LqK23IF_hC20CTP1cO_L9ENcH7zw8KOrWaD2_xK5B3zDMk1vljS/s1600/twitter-icon.png'/></a></td>
<td><a expr:href='data:blog.homepageUrl + "feeds/posts/default"' title='Subscribe to Feed'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjs0Q1YbaDmod8C7gtN_AsmTZ0KR54woqYAWLVSZGXPRe64h8WUeg8yiE3Xm0qACvJ2tEXNFgi62M10BNiMUpzftm6Xcp_8brrEIi2duuZZ8KjNG9AchBPk-dv-Rt9SKKZW0c2glXfvlNI/s1600/rss-feed-icon2.png'/></a></td>
<td style='padding-left:40px; padding-top: 5px;'><a class='twitter-share-button' data-count='horizontal' data-lang='en' href='http://twitter.com/share' title='Publish on Twitter'>Tweet</a><script src='http://platform.twitter.com/widgets.js' type='text/javascript'/></td>
<td><a href='http://www.facebook.com/sharer.php' name='fb_share' title='Publish on Facebook' type='button_count'>Share</a><script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'/></td>
<td style='padding-left:60px;'><a class="google_translate" href='Javascript:void(0)' onclick='window.open("http://www.google.com/translate?u="+encodeURIComponent(location.href)+"&langpair=auto%7Cen&hl=en&ie=UTF8"); return false;' rel='nofollow' title='English'><img align='absbottom' alt='English' border='0' height='24' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVPDbe-XqP6T0PBm6i8NzwGQbQoB2VI3rQN0RQUayU9oIV17tcK3BC3IiqNC8-c2GUv1JjTg2n0oZvKkOGPKAqOh9n-Mjhy-kp4-gg0BqJlz35nYiV0KD4y8W0x5Xp9QwsXGDEOx5fJqHA/s1600/United+Kingdom(Great+Britain).png' width='24'/></a></td>
<td><a class="google_translate" href='Javascript:void(0)' onclick="window.open("http://www.google.com/translate?u="+encodeURIComponent(location.href)+"&langpair=auto%7Cde&hl=en&ie=UTF8"); return false;"><img alt="German" border="0" align="absbottom" title="German" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMld91S_9tbMD_f8r-RBorLn6WTpUGPLp5x-kRRfZUqfbG8Uh-JDF2FX_d-mSiBkkuzqSpVeVMKb8RSF_BZ5s1KENwq7AD1aGJxZNndGhLovWYpM01Qh-8JO0NmaBo3BMuEBFoKhlzllKU/s1600/Germany.png" width="24"/></a></td>
<td><a class="google_translate" href='Javascript:void(0)' onclick='window.open("http://www.google.com/translate?u="+encodeURIComponent(location.href)+"&langpair=auto%7Cfr&hl=en&ie=UTF8"); return false;' rel='nofollow' title='French'><img align='absbottom' alt='French' border='0' height='24' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8zgsZ483xIjjFfGUovAEx-0U3IvlS6oBKJpD797arX2LXJRSK6vw-6RTqRd1AlGm7tieTddZOFumL1bP82-FKTfMgFLyF8zRul52KYhZk5PnlD9IiO7brdTw5R0HAoSveLOKXDmmOVwGa/s1600/France.png' width='24'/></a></td>
<td><a class="google_translate" href='Javascript:void(0)' onclick='window.open("http://www.google.com/translate?u="+encodeURIComponent(location.href)+"&langpair=auto%7Car&hl=en&ie=UTF8"); return false;' rel='nofollow' title='Arabic'><img align='absbottom' alt='Arabic' border='0' height='24' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrCYzWajrEQ5txs6b5cUUNmo2-o-8JYQ-l7Z8JDnCLuoq1fMEtoiA_MzFlakrvxArPI3Ranzod240-D69B1hovbX-GrYFY2GCelZ1QDgyLP0ZXyxorfRQ4YUxWKtwbZ7LPUmItoQlEkv93/s1600/Saudi+Arabia.png' width='24'/></a></td>
<td><a class="google_translate" href='Javascript:void(0)' onclick='window.open("http://www.google.com/translate?u="+encodeURIComponent(location.href)+"&langpair=auto%7Czh-cn&hl=en&ie=UTF8"); return false;' rel='nofollow' title='Chinese Simplified'><img align='absbottom' alt='Chinese Simplified' border='0' height='24' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCvLtNwVbGHlckQrvsMjKtUjpWWJmztJFZpTm3p8wATqIWhCWs9rwk3eSZA6fiNyWeu9Q1czPM_kyqCEXh6nKBuXzlXd836x1256idGsaL1hv88P5bAmJjCYf5mgSggs1mIn9DwfGs3kUQ/s1600/China.png' width='24'/></a></td>
</tr>
</table>
</div>
Step #8: Change Bule URLs with your Facebook and Twitter profiles URLs
If you need to include more things, for example, a counter, links, and so... add a line like this before the </tr> tag
Done!
If you need to include more things, for example, a counter, links, and so... add a line like this before the </tr> tag
<td>Add here the extra content</td>Add the content where is indicated
Done!
0 comments:
Post a Comment