The HTML Code for an automatic updating ( Site Map ) for a Blog site
To Copy the code using your
keyboard use : Ctrl + C
and to paste it anywhere use
Ctrl + V
Or use your mouse ( right click option
) if it does allow you to copy and paste.
Copy the code between the lines only
as it is ( DO NOT Copy The Lines )
--------------------------------(
DO NOT Copy This Line )------------------------
<script type="text/javascript">
var
numposts = 500;
var
standardstyling = true;
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>');
}
</script>
<br />
<ul>
<script src="https://yourBlog.Blogspot.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentposts&max-results=999"></script>
</ul>
--------------------------------(
DO NOT Copy This Line )------------------------
0 comments:
Post a Comment