<script src="http://cikato.tumblr.com/api/read/json" type="text/javascript"></script> <script type="text/javascript"> n = tumblr_api_read["posts-total"]; limit = 18; i2 = 0; for (i = 0; i < n; i++) { if (tumblr_api_read["posts"][i]["type"] == "photo") { photourl = tumblr_api_read["posts"][i]["photo-url-75"]; url = tumblr_api_read["posts"][i]["photo-link-url"]; caption = tumblr_api_read["posts"][i]["photo-caption"].replace(/<\/?[^>]+>/gi, ""); label = '<img alt="' + caption + '" src="' + photourl + '" align="left">'; document.write('<p><a href="' + url + '">' + label + '</a></p>'); if (++i2 >= limit) break; } } </script>
Tags:
作った