This is a special effect for your blogger. It can increase your blog text size when we are clicking on increase button. After add this widget your blog shows three button plus, minus and resize. Green plus button to increase your text size and Red minus button to decrease your text size. You can resize your text with 3rd option.This is useful program. If you want to add in your blogger. Follow this post..
Log In to your Blogger dashboard.
- Go to Template Option.
- Click on Edit HTML .
- Tick Expand Widget Template option above
- Find (CTRL+F) </head> tag.
- Copy and paste below code above </head> tag.
<!-- Start Text re size gadget by www.masterhacksindia.blogspot.com -->
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js' type='text/javascript'/>
<script>
$(document).ready(function(){
//ID, class and tag element that font size is adjustable in this array
//Put in html or body if you want the font of the entire page adjustable
var section = new Array('span','.section2');
section = section.join(',');
// Reset Font Size
var originalFontSize = $(section).css('font-size');
$(".resetFont").click(function(){
$(section).css('font-size', originalFontSize);
});
// Increase Font Size
$(".increaseFont").click(function(){
var currentFontSize = $(section).css('font-size');
var currentFontSizeNum = parseFloat(currentFontSize, 10);
var newFontSize = currentFontSizeNum*1.2;
$(section).css('font-size', newFontSize);
return false;
});
// Decrease Font Size
$(".decreaseFont").click(function(){
var currentFontSize = $(section).css('font-size');
var currentFontSizeNum = parseFloat(currentFontSize, 10);
var newFontSize = currentFontSizeNum*0.8;
$(section).css('font-size', newFontSize);
return false;
});
});
</script>
<!-- End Text re size gadget by www.masterhacksindia.blogspot.com –>
- Then Find(CTRL+F) <div class='post-header-line-1'/> tag.
- Copy below code and paste it directly below <div class='post-header-line-1'/> tag.
<!-- Start Text re size gadget by www.masterhacksindia.blogspot.com -->
<b:if cond='data:blog.pageType == "item"'>
<table border='0' style='float:right; margin-left:5px;'><tr><td><img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgqVCoHLyOPzIZyEz7N3K4i-P6g0nSg0MvKKA7uod6krShkPMu4tO_INsRPR3f9X9l0oVi0VtzvckibYT748LYIogp2WUCjphka_kHpq3dGGybvhbxZBplmXdsTA_NBoOLWTJjqzTi4GI/s1600/font-size-blogger-gadget.png'/> | <a class='increaseFont' style='cursor: pointer; cursor: hand;' title='Larger Text'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoLwvl_d7rWB0JNUBBKx-T1LU3Rb93rS10VzVOISnVBqAWlTdKOEEP2_RyEEnHEx9ijqhQxUP6zoszww4UzODkHdVvK4vqUqz-bZR4o5GKukUx3bljG7CUHQPHinv1OzYdKqqBSfPeSSo/s1600/bigger-font+-+Copy.png'/></a>
<a class='decreaseFont' style='cursor: pointer; cursor: hand;' title='Smaller Text'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg80LiYmlwDVQm6zY7L9Aa5slkMkkoGw3MiFUEft5QbhMO0fwopfU4SAdNkDcqRoxzgBcyXczmYOe_hrENtdv79edYN3VL1S1-KmjlX_3rnPvwNU9N9xwzA5ScDUB9mHHn-Mekm-TBkV2g/s1600/smaller-font.png' style='cursor: hand;'/></a>
<a class='resetFont' style='cursor: pointer; cursor: hand;' title='Reset Text Size'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsxPvcsscOikymByOcH9ptNVeNngPz2zxUukIASBnfBuM_A8VpYC_0NzSyjS1peQ5a5VLYnpolQNAnMzPf_ucAxyC51kDRx5p_35XgCxWxV077jy0_OJ_5Qy0h6x0tI9Eua9GNS_0m5n8/s1600/reset-font.png' style='cursor: hand;'/></a></td></tr></table></b:if>
<!-- End Text re size gadget by www.masterhacksindia.blogspot.com –>
- Again Find(CTRL+F) <data:post.body/> and it replace with below code.
<span><data:post.body/></span>
- Save your template.
Leave a comment …….. If links are not working………………….
0 comments