Beautiful related post widget with thumbnail for blogger | GIÁO XỨ LỘC THỦY
12 Thánh tông đồ Audio suy niệm Audio truyện Công giáo Âm nhạc Bài Giảng mp3 Bạn có biết bạn trẻ xa nhà Bảo vệ sự sống Blog tips Ca kịch công giáo Các bài giáo lý của ĐTC Phanxicô Các hội đoàn Các mục chính Các Thánh Các thánh địa Công giáo Các thánh khác Các Tuần Cửu Nhật Kính Đức Mẹ Các vấn nạn xã hội Cắm hoa nghệ thuật Câu chuyện Giáng Sinh Châm ngôn công giáo Chiêm ngắm Chúa Chuyện phiếm đạo đời Chuyện về Giáo Lý và Giáo Dục Công Giáo đó đây Cửu Nhật Kinh Nguyện Danh Danh bạ website các giáo xứ - giáo họ việt nam Danh bạ website công giáo Di sản thế giới Du Lịch Đẹp + Để sống đạo hôm nay Đôi nét về Giáo xứ Đời sống cầu nguyện Đức Mẹ Hằng Cứu Giúp Đức Mẹ Lama Đức Thánh Cha phanxico Đức Tin và Khoa Học Đường Hy Vọng Gia đình Giải đáp thắc mắc cuộc đời Giao hat Vang Mai Giáo hạt Vàng Mai Giáo Hội Đông Phương Giáo lý - dân ca Giáo lý - kinh thánh Giáo sử Giáo xứ Media góc học tập Góc khám phá Góc nghệ thuật Góc thư giãn Góp nhặt Hạt Giống Lời Chúa Hình ảnh cổ xưa Hình ảnh Giáo xứ Lộc Thủy học tiếng anh Hướng dẫn sử dụng webblog Kết nối websites Kiến thức phổ thông Kính Đức Mẹ Kinh thánh tiếng anh Lẽ sống Lịch sử các Dòng tu Lịch sử Giáo Hội Việt Nam Lịch sử hình thành Giáo xứ Lộc Thủy Lòng Thương xót Chúa Lộc Thủy Lời Chúa qua bài hát Lời chúa theo chủ đề Mùa Vọng - Advent Năm thánh Lòng Thương Xót Nghe và suy gẫm Nghệ thuật Công Giáo Nghệ thuật sống Ơn gọi-tận hiến Phim công giáo Quỳnh lưu Radio Công Giáo Sách Công giáo sách tháng đức bà Sắc màu cuộc sống Sổ tay sinh hoạt suy gẫm Suy gẫm và Cầu nguyện Suy niệm Lời Chúa Suy niệm Lời Chúa mùa Phục Sinh Suy niệm Lời Chúa mùa TN A Suy niệm Lời Chúa năm A Suy niệm mùa chay Sức khỏe - ẩm thực Tài liệu Công Giáo tổng hợp Tài liệu dạy Giáo Lý Tài liệu Tuần Thánh Thánh ca Thánh ca cầu nguyện Thánh Ca Hoàng Diệp Thánh Mẫu học Thánh Mẫu La vang Thế giới Công Giáo Thơ - Truyện Công Giáo Thơ Công Giáo Thơ và cuộc sống Thủ thuật blog Thủ thuật facebook Thủ thuật google + Thư Viện Công Giáo Tiếng anh qua Lời Chúa Tiêu điểm Tìm hiểu phụng vụ Tin Công Giáo Tin Giáo xứ Tin tức Giáo xứ Lộc Thủy Tin Việt Nam và Thế Giới Tổ chức kỳ thi Giáo lý Tông huấn Giáo hội Công giáo Trang Trí Giáng Sinh Trắc nghiệm Giáo lý Trắc nghiệm Kinh Thánh Trắc nghiệm năm đức tin Truyện Công Giáo Truyện về Mẹ Tư liệu Giáo hội Công giáo việt nam Tư liệu Giáo phận Vinh Tư liệu Giáo xứ Lộc Thủy Từ vựng công giáo Anh-việt Tv Công giáo TVs và Radios khắp nơi Vấn đáp đức tin công giáo Videos Đặc Sắc Vietnamese English Prayers Vinh Quang Đức Maria Website Công Giáo bổ ích

Beautiful related post widget with thumbnail for blogger

15:00:00
Adding beautiful related post widget with thumbnail for blogger

(Adding beatiful related post widget with thumbnail and title for blogspot)


Demo:

Step 1: Go to => edit HTML and then paste the below code before </head> tag
<!-- Start Related posts by namkna.blogspot.com -->
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<script src='http://dl.dropbox.com/u/66256041/lien-quan/namkna-blogspot/related-img-by-namkna-nt.js' type='text/javascript'/>
<style type='text/css'>
#related-posts {float:center;text-transform:none;height:100%;min-height:100%;padding:0;margin:10px 0 5px 0;}
#related-posts h2{margin:0;background: url(http://2.bp.blogspot.com/-G9sN-9S0pFQ/TvB1Mde4NGI/AAAAAAAAAWo/WEMaH2u0JME/s1600/newslienquan.jpg) no-repeat scroll left 0 transparent;height: 16px;}
#related-posts a:hover {background-color:#d4eaf2} 
.lienquan {background: #ddd;height:57px;float: left;padding-left: 1px;width: 173px;margin:1px;overflow:hidden;line-height:1.4em}
.related-posts {margin: 0;padding: 0}
.related-posts ul {margin: 0;padding-top: 5px} 
.related-posts ul li {background: url(http://2.bp.blogspot.com/-xqifPunAyFI/TaJlWbZEcGI/AAAAAAAABZ0/AWsX5sEj8Co/s1600/list.png) no-repeat top left;list-style-type: none;margin: 0 0 2px 5px;padding: 2px 0 0 18px;word-wrap: break-word}
</style>
<script type='text/javascript'>
//<![CDATA[
var titles=new Array();var titlesNum=0;var urls=new Array();var time=new Array();function related_results_labels(c){for(var b=0;b<c.feed.entry.length;b++){var d=c.feed.entry[b];titles[titlesNum]=d.title.$t;for(var a=0;a<d.link.length;a++){if(d.link[a].rel=="alternate"){urls[titlesNum]=d.link[a].href;time[titlesNum]=d.published.$t;titlesNum++;break}}}}function removeRelatedDuplicates(){var b=new Array(0);var c=new Array(0);e=new Array(0);for(var a=0;a<urls.length;a++){if(!contains(b,urls[a])){b.length+=1;b[b.length-1]=urls[a];c.length+=1;c[c.length-1]=titles[a];e.length+=1;e[e.length-1]=time[a]}}titles=c;urls=b;time=e}function contains(b,d){for(var c=0;c<b.length;c++){if(b[c]==d){return true}}return false}function printRelatedLabels(a){for(var b=0;b<urls.length;b++){if(urls[b]==a){urls.splice(b,1);titles.splice(b,1);time.splice(b,1)}}var c=Math.floor((titles.length-1)*Math.random());var b=0;document.write("<ul>");if(titles.length==0){document.write("<li>Không có bài vi?t liên quan</li>")}else{while(b<titles.length&&b<20&&b<maxresults){document.write('<li><a href="'+urls[c]+'" title="'+time[c].substring(8,10)+"/"+time[c].substring(5,7)+"/"+time[c].substring(0,4)+'">'+titles[c]+"</a></li>");if(c<titles.length-1){c++}else{c=0}b++}}document.write("</ul>");urls.splice(0,urls.length);titles.splice(0,titles.length)};
//]]>
</script>
</b:if>
<!-- End Related posts by namkna.blogspot.com -->
- Custom height and width to fit your blog template 
Save Template.
Bước 2: Search this line:
<div class='post-footer-line post-footer-line-2'/>
or
<div class='post-footer-line post-footer-line-1'/>
and paste the below code affter one of the above lines.
<!-- Related posts by namkna.blogspot.com -->
<b:if cond='data:blog.pageType == &quot;item&quot;'> 
<div id='related-posts'>
<b:loop values='data:post.labels' var='label'>
<script expr:src='&quot;/feeds/posts/default/-/&quot; + data:label.name + &quot;?alt=json-in-script&amp;callback=related_results_labels_thumbs&amp;max-results=9&quot;' type='text/javascript'/>
</b:loop>
<script type='text/javascript'>
var currentposturl=&quot;<data:post.url/>&quot;;
var maxresults=9;
var relatedpoststitle=&quot;&quot;;
removeRelatedDuplicates_thumbs();
printRelatedLabels_thumbs();
</script>
</div> 
<div style='margin-bottom:5px;clear:both'/> 
<img border='0' src='http://3.bp.blogspot.com/-yiVfzquaerE/TvRKvbCfxaI/AAAAAAAAANc/0sfbyPSDBy4/s1600/cac-tin-khac-namkna-blogspot-com-ngoctra.jpg'/>
<div class='related-posts'>
<b:loop values='data:post.labels' var='label'>
<script expr:src='&quot;/feeds/posts/default/-/&quot; + data:label.name + &quot;?alt=json-in-script&amp;callback=related_results_labels&quot;' type='text/javascript'/>
</b:loop>
<script type='text/javascript'>var maxresults=12;removeRelatedDuplicates();printRelatedLabels(&#39;<data:post.url/>&#39;);</script>
</div>
<div class='clear'/>
</b:if>
<!-- Related posts by namkna.blogspot.com -->
Customizing:
max-results=9&quot number of posts with thumbnail.
var maxresults=12 number of posts in list.
Have a look at the below photo to understand more.


Labels:

Đăng nhận xét

[blogger][facebook][disqus]

Author Name

{picture#https://1.bp.blogspot.com/-E9BgdfTl7Ug/Xpa2B9OupwI/AAAAAAAAA1U/PnbaR3h3-jE-jQ5GwdNpEvZGUfRWCLz6gCLcBGAsYHQ/s1600/Ch%25C6%25B0a%2B%25C4%2591%25E1%25BA%25B7t%2Bt%25C3%25AAn-1.png} {facebook#https://www.facebook.com/giaoxulocthuygpvinh} {twitter#https://twitter.com/giaoxulocthuy} {youtube#https://www.youtube.com/@giaoxulocthuy}

Biểu mẫu liên hệ

Tên

Email *

Thông báo *

Được tạo bởi Blogger.