-->
Facebook Twitter Friendfeed
Gratis berlangganan artikel HTC via mail, join sekarang!

Jumat, 16 Desember 2011

cara membuat recent post berjalan

Jumat, 16 Desember 2011

·         1. Login dulu ke Akun Blogspot anda

·         2. Lalu pada halaman Dasbord Pilih dan Klik Rancangan


·         3. Setelah terbuka Laman rancangan Klik Tambah Gadget

 
 ·         4. Lalu pilih Widget HTML/JavaScript


·         5. Copy script berikut :
 
  <script type='text/javascript'>
//<![CDATA[
function RecentPostsScrollerv2(json)
{
var sHeadLines;
var sPostURL;
var objPost;
var sMoqueeHTMLStart;
var sMoqueeHTMLEnd;
var sPoweredBy;
var sHeadlineTerminator;
var sPostLinkLocation;
try
{
sMoqueeHTMLStart = "<MARQUEE onmouseover="this.stop();" onmouseout="this.start();" ";
if( nWidth)
{
sMoqueeHTMLStart = sMoqueeHTMLStart + " width = "" + nWidth + "%"";
}
else
{
sMoqueeHTMLStart = sMoqueeHTMLStart + " width = "100%"";
}

if( nScrollDelay)
{
sMoqueeHTMLStart = sMoqueeHTMLStart + " scrolldelay = "" + nScrollDelay + """;
}
if(sDirection)
{
sMoqueeHTMLStart = sMoqueeHTMLStart + " direction = "" + sDirection + """;
if(sDirection == "left" || sDirection =="right")
{
//For left and right directions seperate the headilnes by two spaces.
sHeadlineTerminator = "&nbsp;&nbsp;";
}
else
{
//For down and up directions seperate headlines by new line
sHeadlineTerminator = "<br/>";
}
}
if(sOpenLinkLocation =="N")
{
sPostLinkLocation = " target= "_blank" ";
}
else
{
sPostLinkLocation = " ";
}
sMoqueeHTMLEnd = "</MARQUEE>"
sHeadLines = "";
for(var nFeedCounter = 0; nFeedCounter < nMaxPosts; nFeedCounter++)
{
objPost = json.feed.entry[nFeedCounter];
for (var nCounter = 0; nCounter < objPost.link.length; nCounter++)
{
if (objPost.link[nCounter].rel == 'alternate')
{
sPostURL = objPost.link[nCounter].href;
break;
}
}

sHeadLines = sHeadLines + "<b>"+sBulletChar+"</b> <a " + sPostLinkLocation + " href="" + sPostURL + "">" + objPost.title.$t + "</a>" + sHeadlineTerminator;
}
document.write(sMoqueeHTMLStart + sHeadLines + sMoqueeHTMLEnd )
}
catch(exception)
{
alert(exception);
}
}
//]]>
</script>

<script style="text/javascript"> var nMaxPosts = 10; var sBgColor; var nWidth; var nScrollDelay = 180; var sDirection="left"; var sOpenLinkLocation="Y"; var sBulletChar="â&#65533;¢"; </script> <script style="text/javascript" src="http://BLOGKAMU.com/feeds/posts/default?alt=json-in-script&callback=RecentPostsScrollerv2"></script>

·         6. Terakhir klik SAVE
Ca 
Catatan :
nMaxPosts = 10                   : merupakan banyaknya post yang akan ditampilkan.
nScrollDelay = 180              : merupakan kecepatan marquee semakain kecil semakin lambat.
;http://BLOGKAMU.com    : ganti dengan alamat blog mu.

0 komentar:

Posting Komentar

 

Follow Me

Copyright © pertanian | Powered by Blogger | Template by HTC