ada teknik baru nich. .
copy paste aja strukturnya
kode JSnya nich
copy paste aja strukturnya
- Code:
<script>
var numposts = 14;
var standardstyling = true;
</script>
<script src="https://googledrive.com/host/0B4Ao5qJ9g1ToZGVuR1l0enltV1k" type="text/javascript"></script>
<br />
<ol>
<script src="http://namablog.com/feeds/posts/default/-/Download%20Ebook%20Gratis?orderby=published&alt=json-in-script&callback=showrecentposts&max-results=999"></script>
</ol>
kode JSnya nich
- Code:
function showrecentposts(json) {
for (var i = 0; i < numposts; i++) {
var entry = json.feed.entry[i];
var posttitle = entry.title.$t;
var posturl;
if (i == json.feed.entry.length) break;
for (var k = 0; k < entry.link.length; k++) {
if (entry.link[k].rel == 'alternate') {
posturl = entry.link[k].href;
break;
}}
posttitle = posttitle.link(posturl);
if (standardstyling) document.write('<li>');
document.write(posttitle);}
if (standardstyling) document.write('</li>');
document.write('<div style="font-family:Arial; font-size:85%; margin-top:5px;"></div>');
}