Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type='text/javascript'>
- //<![CDATA[
- // Change Blogger popular post thumbnail size using jQuery / MS-potilas 2012
- // Put this code in a html/javascript gadget (after popular posts gadget), or before </body>.
- // See http://yabtb.blogspot.fi/2012/07/resize-popular-post-thumbnail.html
- var newSize = 100; // this is the new thumbnail size, you can change this
- $(".popular-posts .item-thumbnail img").each(function() {
- var oldSize = $(this).attr("width");
- $(this).attr("width", newSize); $(this).attr("height", newSize);
- $(this).attr("src", $(this).attr("src").replace("/s"+oldSize+"-c/", "/s"+newSize+"-c/"));
- });
- //]]>
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement