Photobucket

Selasa, 09 Oktober 2012

Cara Membuat Widget Random Post Blog

Cara membuat random post blog seperti yang saya gunakan disamping. berikut langkah-langkahnya:
  • log in ke dasbor blog anda
  • kemudian pilih tata letak
  • lalu pilihlah tambah gadget
  • pilih HTML
  • copykan kode di bawah ini
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script><center><strong>RANDOM POST</strong></center>
<center>
<style type="text/css" media="screen">
<!--
#spylist {
overflow:hidden;
margin-top:1px;
padding:0px 0px;
height:300px;
}
#spylist ul{
width:100%;
overflow:hidden;
list-style-type: none;
padding: 0px 0px;
margin:0px 0px;
}
#spylist li {
width:100%;
padding: 0px 0px;
margin:0px 0px 5px 0px;
list-style-type:none;
float:none;
height:70px;
overflow: hidden;
background:transparent url() repeat-x;
border:1px solid #ddd;
}
#spylist li a {
text-decoration:none;
color:#ffffff;
width:100%;
font-size:12px;
height:12px;
overflow:hidden;
margin:0px 0px;
padding:0px 0px 2px 0px;
}
#spylist li img {
float:left;
margin-right:5px;
background:transparent;
border:0;
}
.spydate{
overflow:hidden;
font-size:8px;
color:#0284C2;
padding:2px 0px;
margin:1px 0px 0px 0px;
height:12px;
font-family:Tahoma,Arial,verdana, sans-serif;
}
.spycomment{
overflow:hidden;
font-family:Tahoma,Arial,verdana, sans-serif;
font-size:8px;
color:#262B2F;
padding:0px 0px;
margin:0px 0px;
}
-->
</style>
<script language='javascript'>
imgr = new Array();
imgr[0] = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKZwzcMxRROfn_W1L2Bwtsf4tEMmEy2gSfHAUTw3RiDSU0WxRZxtBcCpbOIK4ofX4GvflBde4WLBUHDsHfm-xXKbssWJvpR3iI-gmze-mWLUBW-y6l-hxVMwc0MGFFtM-CSymoicgsZWcK/s128/logo.png";
imgr[1] = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKZwzcMxRROfn_W1L2Bwtsf4tEMmEy2gSfHAUTw3RiDSU0WxRZxtBcCpbOIK4ofX4GvflBde4WLBUHDsHfm-xXKbssWJvpR3iI-gmze-mWLUBW-y6l-hxVMwc0MGFFtM-CSymoicgsZWcK/s128/logo.png";
imgr[2] = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKZwzcMxRROfn_W1L2Bwtsf4tEMmEy2gSfHAUTw3RiDSU0WxRZxtBcCpbOIK4ofX4GvflBde4WLBUHDsHfm-xXKbssWJvpR3iI-gmze-mWLUBW-y6l-hxVMwc0MGFFtM-CSymoicgsZWcK/s128/logo.png";
imgr[3] = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKZwzcMxRROfn_W1L2Bwtsf4tEMmEy2gSfHAUTw3RiDSU0WxRZxtBcCpbOIK4ofX4GvflBde4WLBUHDsHfm-xXKbssWJvpR3iI-gmze-mWLUBW-y6l-hxVMwc0MGFFtM-CSymoicgsZWcK/s128/logo.png";
imgr[4] = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKZwzcMxRROfn_W1L2Bwtsf4tEMmEy2gSfHAUTw3RiDSU0WxRZxtBcCpbOIK4ofX4GvflBde4WLBUHDsHfm-xXKbssWJvpR3iI-gmze-mWLUBW-y6l-hxVMwc0MGFFtM-CSymoicgsZWcK/s128/logo.png";
showRandomImg = true;
boxwidth = 200;
cellspacing = 6;
borderColor = "#232c35";
bgTD = "#000000";
thumbwidth = 50;
thumbheight = 50;
fntsize = 9;
acolor = "#666";
aBold = true;
icon = " ";
text = "comments";
showPostDate = true;
summaryPost = 40;
summaryFontsize = 10;
summaryColor = "#666";
icon2 = " ";
numposts = 1000;
home_page = "http://khepshux.blogspot.com/";
limitspy=4
intervalspy=4000
</script>
<div id="spylist">
<script src='http://sundaboy.googlecode.com/files/Artikel%20Terkait%20berkedip.txt' type='text/javascript'></script>
</div></center>

Tidak ada komentar:

Photobucket
Related Posts Plugin for WordPress, Blogger...