Categories
- Activator
- BackUp
- CAD Collection 2D & 3D
- CD DVD
- Compression
- Converter
- Desktop
- Driver
- Freeware
- Games
- Graphic
- Internet
- MacOSX
- Multimedia
- Office
- Operating System
- Security
- Software Indonesia
- Support Developer
- Utilities
- Web Design
- Apple
- All Software PLUGIN & TEMPLATE
- PlugIn Template MUSE
- PlugIn Temp Blogger
- PlugIn Temp WordPress
- All PlugIn Template Tutorial
- Tutorial Web Design
- Tutorial Blogger
- Book Magazine
- Tips & Trik Excel
- All Other MOBILE PHONE
- iOS
- Android
- Windows
- Nokia
- Black Berry
- All Mobile Phone Uncategorized
- Islam
- Kesehatan
- Font
- Contoh Surat
- Subtitle
- Musik Video
- Lyrics
- All unrcategorized
Labels
Total Tayang
Cara Membuat Widget Artikel Terkait Dan Ringan di blogger
Cara Membuat Widget Artikel Terkait Dan Ringan di blogger
1. Buka Blogger log in ke Dasbor
2. Kemudian masuk ke Menu Template
3. Pilih Edit HTML
4. Kemudian letakkan kode berikut di atas tag </head>
<!-- Artikel TerkaitAndiCang Mulai-->
<style type='text/css'>
#related-posts{float:left;width:100%;}
#related-posts h4{font:20px Oswald;color:#cc0000;text-transform:none;margin:0 0 10px;padding:0;border-bottom:2px solid #ccc}
#related-posts h4 a{font:15px Oswald;text-transform: uppercase;}
#related-posts a{font-size:13px;color:#001b2f;font:95% Oswald,Georgia,Times,Times New Roman,serif;}
#related-posts li{list-style:square;color:#cc0000;text-indent:0;line-height:1.2em;border-bottom:1px dashed #ddd;margin:0;padding:6px 0 6px 0}
#related-posts a:hover{color:#cc0000;text-decoration:none}
#related-posts ul{list-style:none;margin:0;padding-left:20px}
</style>
<script type='text/javascript'>
//<![CDATA[
var relatedTitles = new Array();
var relatedTitlesNum = 0;
var relatedUrls = new Array();
function related_results_labels(json) {
for (var i = 0; i < json.feed.entry.length; i++) {
var entry = json.feed.entry[i];
relatedTitles[relatedTitlesNum] = entry.title.$t;
for (var k = 0; k < entry.link.length; k++) {
if (entry.link[k].rel == 'alternate') {
relatedUrls[relatedTitlesNum] = entry.link[k].href;
relatedTitlesNum++;
break;}}}}
function removeRelatedDuplicates() {
var tmp = new Array(0);
var tmp2 = new Array(0);
for(var i = 0; i < relatedUrls.length; i++) {
if(!contains(tmp, relatedUrls[i])) {
tmp.length += 1;
tmp[tmp.length - 1] = relatedUrls[i];
tmp2.length += 1;
tmp2[tmp2.length - 1] = relatedTitles[i];}}
relatedTitles = tmp2;
relatedUrls = tmp;}
function contains(a, e) {
for(var j = 0; j < a.length; j++) if (a[j]==e) return true;
return false;}
function printRelatedLabels() {
var r = Math.floor((relatedTitles.length - 1) * Math.random());
var i = 0;
document.write('<ul>');
while (i < relatedTitles.length && i < 6) {
document.write('<li><a href="' + relatedUrls[r] + '?madjongke.com=br">' +
relatedTitles[r] + '</a></li>');
if (r < relatedTitles.length - 1) {
r++;
} else {
r = 0;}
i++;}
document.write('</ul>');}
//]]>
</script>
<!-- Artikel TerkaitAndiCang Akhir-->
5. Jika sudah selesai , cari <data:post.body/> lalu pasang ata copy paste kode berikut di bawahnya.
<!-- Artikel TerkaitAndiCang Mulai-->
<div id='related-posts'>
<b:if cond='data:post.labels'>
<b:loop values='data:post.labels' var='label'>
<b:if cond='data:blog.pageType == "item"'>
<script expr:src='"/feeds/posts/default/-/" + data:label.name + "?alt=json-in-script&callback=related_results_labels&max-results=6"' type='text/javascript'/>
</b:if>
</b:loop>
</b:if>
<b:if cond='data:blog.pageType == "item"'>
<h4><i><b:if cond='data:post.labels'><b:loop values='data:post.labels' var='label'><a expr:href='data:label.url' rel='tag'><data:label.name/></a><b:if cond='data:label.isLast != "true"'>, </b:if></b:loop></b:if></i></h4>
<script type='text/javascript'>
removeRelatedDuplicates();
printRelatedLabels();
</script>
</b:if></div>
<!-- Artikel TerkaitAndiCang Akhir-->
6. Terakhir Save template untuk menyimpan template.
Note: apabila script sepert ini <data:post.body/> lebih dari satu, pilihlah yang kedua atau ketiga
dan hasilnya akan seperti dibawah ini
Terima kasih anda telah membaca Tutorial atau mendownload Software di Blog ini Selamat Mencoba Semoga Bermanfaat ……………andicang.blogspot.com
Cari Blog Ini
Entri Populer
- 001. Koleksi Door (Door Collection)_AndiCang_01 Keterangan : Pintu 600, Pintu 650, Pintu 700, Pintu 800, Pintu 900, Pintu 1000. P...
- 01. CRYPTO Actions PlugIn For Autoplay Media Sudio Klik Show untuk ScreenShoot Klik Show untuk Detail "This plugin expands th...
- Legacy Family Tree Deluxe 7Introduction: Legacy Family Tree Deluxe 7.5.0.278 Legacy Family Tree Deluxe 7 Legacy Family Tree Deluxe 7.5.0....
- EPUB Converter is a tool that offers an easy, efficient and quick way to help you convert EPUB files to other formats, and vice versa. EPUB...
0 komentar:
Posting Komentar