/ Published in: Other
Expand |
Embed | Plain Text
var posts = $$('#posts li'); var tumb = ".image_thumbnail"; $each(posts,function(el){ var img = el.getElement('.image_thumbnail'); var hash = (img.src+'').split('o1_')[0].split('tumblr.com/')[1]; var postId = el.id.replace('post',''); var host = el.getElement('.post_avatar').href; var path = host+'photo/1280/'+postId+'/1/'+hash; img.src = path; img.style.width = img.style.height = 'auto' });
You need to login to post a comment.
