I d like to display two independent Tumblr blogs next to each other on one page. I d like them to look identical to their Tumblr theme. What s the best way to do this?
I m able to use JavaScript to import the content like this:
<div id="tumblr1">
<script type="text/javascript" src="http://tumblr1.tumblr.com/js"></script>
<div>
<div id="tumblr2">
<script type="text/javascript" src="http://tumblr2.tumblr.com/js"></script>
<div>
But the content obviously won t be styled. Is there a simpler way to do this? If not, is there a simple way to style the content I m getting from the js?
UPDATE:
I m working on parsing the JSON but JavaScript not liking the dashes in the property values. For a simplified example:
<script type="text/javascript">
var tumblelog = {
"title":"Tumblr Title",
"description":"Tumblr Description",
"name":"tumblr name",
"timezone":"US/Central",
"cname":false,
"feeds":0,
"posts-start":0,
"posts-total":"111",
"posts-type":false
};
</script>
<script type="text/javascript">
document.write(tumblelog.posts-total);
</script>
tells me "Uncaught ReferenceError: total is not defined". However,
<script type="text/javascript">
document.write(tumblelog.feeds);
</script>
returns 0 just fine. Tumblr s API suggests something like
document.write(tumblelog[ @posts-total ]);
when working with but that returns "undefined".
Any suggestions?