Change font size or Resize font size jquery widget for blogger

I already posted some jquery widgets before in this blog. today i will post an interesting widget which is used to resize the font size or change font size of a post, this post can increase and decrease the font size as well. it is very useful tool for your blog as it helps to make readers comfortable to read you blog content especially blog which post reviews or stories. see demo here.


First of all, you need to download javascript files required for this widget, upload or host themto any hotlinking service i.e site providing direct linking to the file, you may choose "Bravehost" as it offers unlimited bandwidth and large amount of storage ...and its free too.If you want to know , how to use bravehost . you can read it here.
  • Second, adding CSS + javascript to blogger
 Login to Blogger account > Click layout > edit HTML > Check expand widget templates
Now Find ]]></b:skin> Then Replace it with the code below

]]></b:skin>

<script src='http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js' type='text/javascript'/>

<script src='http://code.jquery.com/jquery-latest.js' type='text/javascript'/>
<script src='http://YOUR-SITE-HERE.bravehost.com/jquery.ui.js' type='text/javascript'/>
<script src='http://YOUR-SITE-HERE.bravehost.com/cookie.js' type='text/javascript'/>
<script src='http://YOUR-SITE-HERE.bravehost.com/Source%285%29%5CSource/textresize.js' type='text/javascript'/>

<style media='screen' type='text/css'>

.minus {
background: url(http://2.bp.blogspot.com/_JUJEXEamsyU/SuqULeeAvPI/AAAAAAAAAus/byssDZ2o4hU/s400/minus-trans.png) no-repeat;
height: 9px;
width: 25px;
overflow: hidden;
float: left;
cursor: pointer;
}

.slider_bar {
background: url(http://4.bp.blogspot.com/_JUJEXEamsyU/SuqUKk3REdI/AAAAAAAAAuc/PptaNl2gRcs/s400/bar-trans.png) no-repeat;
height: 9px;
width: 316px;
float: left;
margin: 0px 5px;
position: relative;
}
.add {
background: url(http://3.bp.blogspot.com/_JUJEXEamsyU/SuqUKf_Z_TI/AAAAAAAAAuU/8vXa17tcklE/s400/add-trans.png) no-repeat;
height: 25px;
width: 23px;
float: left;
position: relative;
top: -5px;
cursor: pointer;
}
.slider_handle {
background: url(http://1.bp.blogspot.com/_JUJEXEamsyU/SuqULT5D5AI/AAAAAAAAAu0/pN7NAlG_qkI/s400/selector-trans.png) no-repeat;
height: 25px;
width: 12px;
position: absolute;
top: -8px;
}
#slider_caption {
background: url(http://2.bp.blogspot.com/_JUJEXEamsyU/SuqULLtBAFI/AAAAAAAAAuk/p0k1jB_f1XE/s400/caption-trans.png) no-repeat;
height: 45px;
width: 38px;
overflow: hidden;
position: absolute;
top: -50px;
margin-left:-10px;
padding: 5px 0px 0px 0px;
font-family: &quot;Myriad Pro&quot;;
color: #36665d;
font-weight: bold;
text-align: center;
}

</style>

Replace the YOUR SITE HERE with your direct links.

 If you want to use compact version as shown above , remove slider_handle, slider_caption, slider_bar code , highlighted in bold brown letters from the code above.
  • Second, now find <data:post.body/> And Replace it With Below code
  <div id="text"><p> <data:post.body/> </p></div>

Then Find And Replace it With Below code


<div id="text"><p> <data:post.title/> </p></div>

Now Click Save Template !
  • Login your BLOGGER account And click on Layout in the sub menu click PAGE ELEMENT Click Add a GADGET select HTML/JAVA paste below code in it and Click SAVE

<div id="header">
<div class="slider_container">
<div class="minus"></div>
<div class="slider_bar">
<div id="slider_caption"></div>
<div id="slider1_handle" class="slider_handle"></div>
</div>
<div class="add"></div>

</div>
</div>
<div id="font_indicator">Current Font Size: <b></b> </div>
<span style="font-size:4px;"><a href="http://www.techravi.com/" target="_blank">Plug it</a></span>

Now the Resizing Bar will Work !

Credits : made by Connor Zwick

Modified & distributed by : Techravi.com

0 Responses to “Change font size or Resize font size jquery widget for blogger”

Post a Comment

All Rights Reserved Techravi | Distributed By Blogspot Templates | Designed By Bloggermint