Galeria de postagens com miniaturas de imagens para o blog

Views:
<center><style type="text/css">
/* Galeria de postagens */
.bsrp-gallery {
clear:both;
}
.bsrp-gallery:after {
display: table;
clear: both;
}
.bsrp-gallery .bs-item a {
position: relative;
float:left;
margin: 0 15px 15px 0 !important;
text-decoration:none;
}
.bsrp-gallery .bs-item .ptitle {
background: #7f7f7f; /* COR DE FUNDO DA LEGENDA */
display: block;
clear: left;
font-size: 11px; /* TAMANHO DA FONTE DA LEGENDA */
line-height:1.3em;
height: 2.6em; /* ALTURA DA LEGENDA */
position: absolute;
text-align: left;
bottom: 10%;
color:#fff; /* COR DA FONTE DA LEGENDA */
padding:1px ;
word-wrap: break-word;
overflow:hidden;
}
.bsrp-gallery a img {
background: #fff;
padding: 1px;
float: left;
height: auto;
border: 1px solid #000;/* COR DA BORDA DA MINIATURA */
}
.bsrp-gallery a:hover img {
height: auto;
padding:1px;
border: 1px solid #ff0000;/* COR DA BORA EM ESTADO HOVER */
}
/* FIM DO CSS  */
</style>
<script>
function bsrpGallery(root) {
var entries = root.feed.entry || [];
var html = ['<div class="bsrp-gallery nopin" title="">'];
for (var i = 0; i < entries.length; ++i) {
var post = entries[i];
var postTitle = post.title.$t;
var orgImgUrl = post.media$thumbnail ? post.media$thumbnail.url : 'http://3.bp.blogspot.com/-sWtp_qRPNT8/UZYmQq5sAdI/AAAAAAAAEec/7YDbpK4Q6g8/s72-c/default+image.png';
var newImgUrl = orgImgUrl.replace('s72-c', 's' + bsrpg_thumbSize + '-c');
var links = post.link || [];
for (var j = 0; j < links.length; ++j) {
if (links[j].rel == 'alternate') break;
}
var postUrl = links[j].href;
var imgTag = '<img src="' + newImgUrl + '" width="' + bsrpg_thumbSize + '" height="' + bsrpg_thumbSize + '"/>';
var pTitle = bsrpg_showTitle ? '<span class="ptitle">' + postTitle + '</span>' : '';
var item = '<a href="' + postUrl + '" title="' + postTitle + '">' + imgTag + pTitle + '</a>';
html.push('<div class="bs-item">', item, '</div>');
}
html.push('</div>');
document.write(html.join(""));
}
hoje = new Date()
numposts = (5 +(2*(hoje.getSeconds())))
var bsrpg_thumbSize = 100; /* TAMANHO DA MINIATURA */
var bsrpg_showTitle = true;
document.write("<script src=\"/feeds/posts/default?start-index="+numposts+"&max-results=6&orderby=published&alt=json-in-script&callback=bsrpGallery\"><\/script>");</script></center>

Home Sobre mim Tutoriais Loja de templates Portfólio Fanpage