Add Rotating Slides Of Popular Posts Widget To Blogger

Thursday, July 5, 2012 0 comments


}

#PopularPosts1 ul {
width:310px;
overflow:hidden;
list-style-type: none;
padding: 0px 0px;
margin:10px 0px 0px 10px;
}

#PopularPosts1 li {
 width:290px;
padding: 5px 5px;
margin:0px 0px 5px 0px;
list-style-type:none;
float:none;
height:80px;
overflow: hidden;
background:#fff url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo7wwnxOMh_DIayEiA6uPDHW_YMlTBw3dJZRK2kh2dxXJpVVqCDGtlb2qYmudg0zrJNJL06OpkAKcQ209JawJm_lImMApnYf9t2DmT1uFg4XuzB9hba0jY_NAOklCJh7-J8oFo4UtAx7k/s400/popular+posts.jpg) repeat-x;
border:1px solid #ddd;
}

#PopularPosts1 li .item-title {
   
    font-size:1em;
    margin-bottom:0.5em;
}

#PopularPosts1 li .item-title a {
text-decoration:none;
color:#7CA2C4;
font:bold 12px verdana;

height:18px;
overflow:hidden;
margin:0px 0px;
padding:0px 0px 2px 0px;
}

#PopularPosts1 li img {
float:left;
margin-right:5px;
background:#EFEFEF;
border:2px solid #7CA2C4;
}

#PopularPosts1 li .item-snippet {
  overflow:hidden;
font-family:Tahoma,Arial,verdana, sans-serif;
font-size:10px;
color:#289728;
padding:0px 0px;
margin:0px 0px;
}

#PopularPosts1 .item-snippet a,
#PopularPosts1 .item-snippet a:visited {
    color:#3E4548;
    text-decoration: none;
}

#PopularPosts1 .spyWrapper {
    height: 100%;
    overflow: hidden;
    position: relative;
}

#PopularPosts1 {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
}

.tags span,
.tags a {
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
}

a img {
    border: 0;
}

-->
</style>
<script src="[a href="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js""]http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"[/a] type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
$(function () {
    $('.popular-posts ul').simpleSpy();
});
</script>
<script src="[a href="http://accordion-for-blogger.googlecode.com/svn/trunk/simplespy.js""]http://accordion-for-blogger.googlecode.com/svn/trunk/simplespy.js"[/a] type="text/javascript"></script>

 

Keep the two widgets together. One on top of another as shown below,

popular-posts widget

 

Make Changes To Colors and Fonts

Not all of you uses a white background for your blogs and some of you may wish to have complete control over the appearance of the widget. I am listing below important areas which you can edit to let the widget perfectly blend your template.

  • To Change Widget container height edit height:310px;
  • To change the small rectangles width edit width:310px
  • To change width of the text snippet then edit width:290px;. Keep this width 20px smaller than the rectangles width. For example in this widget I have kept rectangles width=310px; and snippet width=290px;
  • To change link title color and font size edit color:#7CA2C4;
    font:bold 12px verdana;
  • To change thumbnail image's border colour and size edit border:2px solid #7CA2C4
  • To change the snippet text's font size, family and colour then edit the yellow highlighted code

What if your template background colour is black or dark?

In such a case replace the following code,

background:#fff url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo7wwnxOMh_DIayEiA6uPDHW_YMlTBw3dJZRK2kh2dxXJpVVqCDGtlb2qYmudg0zrJNJL06OpkAKcQ209JawJm_lImMApnYf9t2DmT1uFg4XuzB9hba0jY_NAOklCJh7-J8oFo4UtAx7k/s400/popular+posts.jpg) repeat-x;

with this,

background:#ffffff;

Replace #ffffff with your background color. Use our color generator tool.

I hope you like this widget and find it useful. Please let me know if you needed any help. Peace brothers. :>

Source: http://www.mybloggertricks.com/2011/09/add-rotating-slides-of-popular-posts.html
Share this article :

Post a Comment

 
Copyright © 2012. Blogger Tips For Beginners - All Rights Reserved
The information is compiled from various sources on the internet