Saturday, April 30, 2011

How to add stylish Jquery post widget to blogger

How to add stylish Jquery post widget to blogger

blogger,stylish,jquary,blogger tips,widget,post
This is cool widget to your blogger.you can get nice look to your blog.try it.
Click here to  DEMO

1. Log in to your blogger account and Go to Design >> Edit HTML

2. Put checked marked in Expand Widget Templates

3. Find this tag by using Ctrl+F 

4. Paste below code before ]]></b:skin> tag

#featured{
width:336px;
padding-right:250px;
position:relative;
height:250px;
background:#fff;
border:5px solid #ccc;
}
#featured ul.ui-tabs-nav{
    position:absolute;
    top:0; left:336px;
    list-style:none;
    padding:0; margin:0;
    width:250px;
}
#featured ul.ui-tabs-nav li{
    padding:1px 0; padding-left:13px;
    font-size:12px;
    color:#666;
}
#featured ul.ui-tabs-nav li span{
    font-size:11px; font-family:Verdana;
    line-height:18px;
}

#featured .ui-tabs-panel{
    width:336px; height:250px;
    background:#999; position:relative;
        overflow:hidden;
}
#featured .ui-tabs-hide{
    display:none;
}

#featured li.ui-tabs-nav-item a{/*On Hover Style*/
    display:block;
    height:60px;
    color:#333;  background:#fff;
    line-height:20px;
    outline:none;
}
#featured li.ui-tabs-nav-item a:hover{
    background:#f2f2f2;
}
#featured li.ui-tabs-selected{ /*Selected tab style*/
    background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMkoj57hb4mOMJvM2p7ktj4r0iuQsfNh5SReIEJTCaXEBvJIpFuitBi2M8fTXaAftyVH7c6gscS3Z6ERnpdU_TLdbt95HKYR_dHXqnGXG3xSChtTcjJ5fGO2TD_7Pr2GCdu68qIZlbxJM/s1600/selected-item.gif') top left no-repeat;
}
#featured ul.ui-tabs-nav li.ui-tabs-selected a{
    background:#ccc;
}

#featured ul.ui-tabs-nav li img{
    float:left; margin:2px 5px;
    background:#fff;
    padding:2px;
    border:1px solid #eee;
}
#featured .ui-tabs-panel .info{
    position:absolute;
    top:180px; left:0;
    height:70px; width: 400px;
    background: url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjr5EU9BqhBcnqCHTiGdtTh7l6wyhjt3UzWy0KFMtCNcilO3EIawyWyWdWoCd8Ck38KrSpFyqdoJ0_DaEepM-cItcuNXKceealPEs7pgeKSDsNQ4wxbEkWA_RPKBF6jZX3BfPbVPtRhuUE/s1600/transparent-bg.png');
}
#featured .info h2{
    font-size:18px; font-family:Georgia, serif;
    color:#fff; padding:5px; margin:0;
    overflow:hidden;
}
#featured .info p{
    margin:0 5px;
    font-family:Verdana; font-size:11px;
    line-height:15px; color:#f0f0f0;
}
#featured .info a{
    text-decoration:none;
    color:#fff;
}
#featured .info a:hover{
    text-decoration:underline;
}

.ui-tabs-nav-item img {
width:45px;
height:45px;
}

5. Now find  </head> tag

6. Paste below code before </head> tag

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'/>

<script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js' type='text/javascript'/>

<script type='text/javascript'>

    $(document).ready(function(){

        $(&quot;#featured &gt; ul&quot;).tabs({fx:{opacity: 
&quot;toggle&quot;}}).tabs(&quot;rotate&quot;, 5000, 
true);

    });

</script>

7. Go to Design >> Page Element

8. Click Add Gadget and select 'HTML/Javascript'

9. Paste below one of below code.

<div id="featured">

          <ul class="ui-tabs-nav">
            <li class="ui-tabs-nav-item ui-tabs-selected">
<a href="#fragment-1">
<img alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXZeZujgWT3_k8cCxp3ZJPg8XUvsHOao_KtPqn9VygPc2zgN3QCaa3cZyXIQFSTjDoJ3BzgDcNi6dv7UtnAVCntvxQDDZs8Jxg37WtX0cHjjE33FhXdCVjoZGwwP5IuOdYneXR95JiuuS0/s320/bloggertrix.1.jpg" />
<span>Cool nature</span></a></li>

            <li class="ui-tabs-nav-item">
<a href="#fragment-2">
<img alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjI_EJODdkvUkJdFvPJEOmEvIE3-kD7vbMIv1WjmOu55kg-Z0ivH1t7faJAtldJJ768swzTiIVH6M69M9ir5Bx428Ycck4jmKH_OT0ZHS9aeu8CYpVvY3Vws6DJXxkPI-8sKaqMPyqlXpJN/s320/bloggertrix.2.jpg" />
<span>Fresh  Fruit</span></a></li>

            <li class="ui-tabs-nav-item">
<a href="#fragment-3"><img alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIIyyTvaIXsu3MjtC1LTMaaUKEiBkEVrOumn68vzTLp4x4N6PdHctp_idJajjQLACvOCOlASEMcwXB77DFGCLzahnx7wABa3ozW-2ilNff2i0kiFRkmuK6YPkS0CupWvLnuw0Zz57Yb-Rl/s320/bloggertrix.5.jpg" /><span>Foods</span></a></li>

            <li id="nav-fragment-4" class="ui-tabs-nav-item">
<a href="#fragment-4">
<img alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2O8Y2tL0mAMDaztpOWMuoUp_XcpHPArxU4oFRTWewAiwE6-y16C27rHjvqir5djM5oeCo59ddWDlb67x_Qq6yxh7XhyH7bGSnZHF3SbOJz-qTXI5giOoeC656WLQqeH0Ax1_n9OZ9v3Pm/s320/bloggertrix.4.JPG" />
<span>Amzing nature</span></a></li>
          </ul>

        <!-- First Content -->
        <div id="fragment-1" style="" class="ui-tabs-panel">
            <img alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXZeZujgWT3_k8cCxp3ZJPg8XUvsHOao_KtPqn9VygPc2zgN3QCaa3cZyXIQFSTjDoJ3BzgDcNi6dv7UtnAVCntvxQDDZs8Jxg37WtX0cHjjE33FhXdCVjoZGwwP5IuOdYneXR95JiuuS0/s320/bloggertrix.1.jpg" />

             <div class="info">
                <h2><a href="#fragment-1">Cool nature</a></h2>
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla tincidunt condimentum lacus. Pellentesque ut diam....<a href="#">Read more</a></p>
             </div>
        </div>

        <!-- Second Content -->
        <div id="fragment-2" style="" class="ui-tabs-panel">
            <img alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjI_EJODdkvUkJdFvPJEOmEvIE3-kD7vbMIv1WjmOu55kg-Z0ivH1t7faJAtldJJ768swzTiIVH6M69M9ir5Bx428Ycck4jmKH_OT0ZHS9aeu8CYpVvY3Vws6DJXxkPI-8sKaqMPyqlXpJN/s320/bloggertrix.2.jpg" />

             <div class="info">
                <h2><a href="#fragment-2">Fresh fruit</a></h2>
                <p>Vestibulum leo quam, accumsan nec porttitor a, euismod ac tortor. Sed ipsum lorem, sagittis non egestas id, suscipit....<a href="#">Read more</a></p>
             </div>
        </div>

        <!-- Third Content -->
        <div id="fragment-3" style="" class="ui-tabs-panel">
            <img alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXZeZujgWT3_k8cCxp3ZJPg8XUvsHOao_KtPqn9VygPc2zgN3QCaa3cZyXIQFSTjDoJ3BzgDcNi6dv7UtnAVCntvxQDDZs8Jxg37WtX0cHjjE33FhXdCVjoZGwwP5IuOdYneXR95JiuuS0/s320/bloggertrix.1.jpg" />

             <div class="info">
                <h2><a href="#fragment-3">Foods</a></h2>
                <p>liquam erat volutpat. Proin id volutpat nisi. Nulla facilisi. Curabitur facilisis sollicitudin ornare....<a href="#">Read more</a></p>
             </div>
        </div>

        <!-- Fourth Content -->
        <div id="fragment-4" style="" class="ui-tabs-panel ui-tabs-hide">
            <img alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2O8Y2tL0mAMDaztpOWMuoUp_XcpHPArxU4oFRTWewAiwE6-y16C27rHjvqir5djM5oeCo59ddWDlb67x_Qq6yxh7XhyH7bGSnZHF3SbOJz-qTXI5giOoeC656WLQqeH0Ax1_n9OZ9v3Pm/s320/bloggertrix.4.JPG" />

             <div class="info">
                <h2><a href="#fragment-4">AMzing nature</a></h2>
                <p>Quisque sed orci ut lacus viverra interdum ornare sed est. Donec porta, erat eu pretium luctus, leo augue sodales....<a href="#">Read more</a></p>
             </div></div>
<a href="http://www.bloggertrix.com"><img alt="Best Bloger tricks" src="http://img1.blogblog.com/img/blank.gif"/>
</a></div>

*Replace red URL with your image URL
* If you want you can replace  #fragment-1 to #fragment-4 with your link URL

10. Save it. you are done.

1 comment:

  1. thanks for this nice widget , hope you can visit me blog and tell me your recommend to make it good look if you don't mind that

    nots: my blog by Arabic and i don't know if that OK or not

    http://www.knowabout-it.blogspot.com

    ReplyDelete