JOB VACANCY Where life just keeps getting better... At Marriott, you define what success means to you, and then we help make it happen. with opportunities for building your skills, colleagues who share your enthusiasm, and a clear path with challenging work that provides direction for growth and promotion. if you`re the kind of person who wants to be challenged, and applauded, this is where you belong. Now you have an opportunity for : [Readmore..]

Cara Membuat Page Number Navigation (1,2,3...)

Posted by rhara jaa | Senin, 21 Februari 2011 15.12


Bagai Mana Cara Membuat Page Number Navigation Seperti gambar di atas..
Disini saya Membagi ilmu dengan sesama blogger..
pertama Login ke Blogger anda..
setelah itu Masuk ke dashboard blogger anda,selanjutnya,pilih tata letak,dan pilih edit html.
Seperti biasa,contreng option expand widget templates,selanjutnya cari kode berikut:
]]></b:skin>
Setelah ketemu,letakkan persis diatasnya kode css dibawah ini:
.showpageArea a {
text-decoration:underline;
}
.showpageNum a {
text-decoration:none;
border: 1px solid #cccccc;
margin:0 3px;
padding:3px;
}
.showpageNum a:hover {
border: 1px solid #cccccc;
background-color:#cccccc;
}
.showpagePoint {
color:#333;
text-decoration:none;
border: 1px solid #cccccc;
background: #cccccc;
margin:0 3px;
padding:3px;
}
.showpageOf {
text-decoration:none;
padding:3px;
margin: 0 3px 0 0;
}
.showpage a {
text-decoration:none;
border: 1px solid #cccccc;
padding:3px;
}
.showpage a:hover {
text-decoration:none;
}
.showpageNum a:link,.showpage a:link {
text-decoration:none;
color:#333333;
}

Lalu,cari lagi kode seperti ini:

</body>

Jika sudah ketemu,tepat diatasnya letakkan script dibawah ini:

<b:if cond='data:blog.pageType != &quot;item&quot;'>
<script type='text/javascript'>
var pageCount=5;
var displayPageNum=5;
var upPageWord =&#39;Previous&#39;;
var downPageWord =&#39;Next&#39;;
</script>
<script src='http://blogergadgets.googlecode.com/files/blogger-page-navi.v1.js' type='text/javascript'/>
</b:if>


Langkah terakhir,carilah kode berikut:

'data:label.url'

Jika sudah ketemu,hapus kode tersebut dan gantilah kode berikut:

'data:label.url + &quot;?&amp;max-results=5&quot;'     

Sekarang,simpan templates anda,dan anda bisa lihat hasilnya sekarang.....................
Sumber

RSS feed for comments on this post.

Leave a comment

My Headlines