Ticker

6/recent/ticker-posts

Tambah Tajuk Post pada older dan newer post link




Tambah Tajuk Post pada older dan newer post link

Langkah 1
1. Login ke Blogger, Klik Layout :









2. Pada Elemen Halaman, klik Add Gadget di lokasi yang Anda ingin letak; 
3. Pilih HTML/Javascript;



Langkah 2
Copy kode dibawah ini dan letakkan dalam kontent yang telah anda buka tadi.







<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<style>
#blog-pager-newer-link{font-size:90%;width:200px;text-align:left;padding:5px}
#blog-pager-older-link{font-size:90%;width:200px;text-align:right;padding:5px}
.blog-pager-newer-link,.blog-pager-older-link{background-color:transparent!important;padding:0!important}
</style>
<script type='text/javascript'>
//<![CDATA[
var urlToNavTitle={};function getTitlesForNav(e){for(var c=0;c<e.feed.entry.length;c++){for(var a=e.feed.entry[c],d="",b=0;b<a.link.length;b++)if("alternate"==a.link[b].rel){d=a.link[b].href;break}""!=d&&(urlToNavTitle[d]=a.title.$t)}};
document.write('<script type="text/javascript" src="http://'+window.location.hostname+'/feeds/posts/summary?redirect=false&max-results=500&alt=json-in-script&callback=getTitlesForNav"></'+'script>');
function urlToPseudoTitle(a){if(a=a.match(/\/([^\/_]+)(_.*)?\.html/))a=a[1].replace(/-/g," "),a=a[0].toUpperCase()+a.slice(1),28<a.length&&(a=a.replace(/ [^ ]+$/,"..."));return a}
$(window).load(function(){window.setTimeout(function(){var a=$("a.blog-pager-newer-link").attr("href");if(a){var b=urlToNavTitle[a];b||(b=urlToPseudoTitle(a));b&&$("a.blog-pager-newer-link").html("&lt;&lt; Newer Post<br />"+b)}if(a=$("a.blog-pager-older-link").attr("href"))(b=urlToNavTitle[a])||(b=urlToPseudoTitle(a)),b&&$("a.blog-pager-older-link").html("Older Post &gt;&gt;<br />"+b)},500)});
//]]>
</script>
</b:if>

Catat Ulasan

0 Ulasan