widget random posting
<script type="text/javascript"> var randarray = new Array();var l=0;var flag; var numofpost=10;function randomposts(json){ var total = parseInt(json.feed.openSearch$totalResults.$t,10); for(i=0;i < numofpost;){flag=0;randarray.length=numofpost;l=Math.floor(Math.random()*total);for(j in randarray){if(l==randarray[j]){ flag=1;}} if(flag==0&&l!=0){randarray[i++]=l;}}document.write('<ul>'); for(n in randarray){ var p=randarray[n];var entry=json.feed.entry[p-1]; for(k=0; k < entry.link.length; k++){if(entry.link[k].rel=='alternate'){var item = "<li>" + "<a href=" + entry.link[k].href + ">" + entry.title.$t + "</a> </li>"; document.write(item);}} }document.write('</ul>');} </script> <script src="/feeds/posts/default?alt=json-in-script&start-index=1&max-results=1000&callback=randomposts" type="text/javascript"></script>
Jumat, 17 Februari 2012
Selasa, 17 Januari 2012
cara agar blog kita tidak bisa di block copas
Silahkan ikuti langkah-langkahnya yUa^_^ :
1. Masuk ke Dasbor
2. Klik tab Tata Letak
3. Klik tab Edit HTML
4. Beri tanda centang pada kotak kecil Expand Template Widget
5. Silahkan cari di dalam template anda kode <head>
6. Kalau sudah ketemu, anda Copy Pastekan script yang ada dibawah ini "Persis setelah kode <head>".
7. Klik Simpan Template
8. Selesai
1. Masuk ke Dasbor
2. Klik tab Tata Letak
3. Klik tab Edit HTML
4. Beri tanda centang pada kotak kecil Expand Template Widget
5. Silahkan cari di dalam template anda kode <head>
6. Kalau sudah ketemu, anda Copy Pastekan script yang ada dibawah ini "Persis setelah kode <head>".
<SCRIPT type="text/javascript">
if (typeof document.onselectstart!="undefined") {
document.onselectstart=new Function ("return false");
}
else{
document.onmousedown=new Function ("return false");
document.onmouseup=new Function ("return true");
}
</SCRIPT>
7. Klik Simpan Template
8. Selesai
Senin, 26 Desember 2011
buat Back to Top
1. kamu Log in ke blogger
2. Tata Letak
3. Kamu cari kode </body>
4. kamu taruh kode ini di atasnya
<!-- Bact to top designed by Hafidh - www.hafidhnofandi.blogspot.com -->
<a href='#' style='display:scroll;position:fixed;bottom:5px;right:5px;' title='Back to Top'><img src='http://i1195.photobucket.com/albums/aa398/Hafidh_Parawali/atas.png'/></a>
2. Tata Letak
3. Kamu cari kode </body>
4. kamu taruh kode ini di atasnya
<!-- Bact to top designed by Hafidh - www.hafidhnofandi.blogspot.com -->
<a href='#' style='display:scroll;position:fixed;bottom:5px;right:5px;' title='Back to Top'><img src='http://i1195.photobucket.com/albums/aa398/Hafidh_Parawali/atas.png'/></a>
Langganan:
Postingan (Atom)