更改媒体大小:Blogger RSS Feed上的缩略图 [英] Change size of the media:thumbnail on Blogger RSS Feed
本文介绍了更改媒体大小:Blogger RSS Feed上的缩略图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有任何方法可以调整媒体大小:RSS feed(Blogger)上的缩略图URL当前为默认大小,高度为72px,宽度为72px.我曾尝试在模板上添加此javascript,但未能使其正常工作-我在</body>
Is there any way to resize the media:thumbnail URL on the RSS feed(Blogger) At the moment it's at the default size of height 72px and width 72px.
I have tried adding this javascript on the Template and didn't manage to get it work- I added it just before </body>
<script type='text/javascript'>
function resizeThumb(e,b){var c=document.getElementById(e),d=c.getElementsByTagName("img");for(var a=0;a<d.length;a++){d[a].src=d[a].src.replace(/\/s72\-c/,"/s"+b+"-c");d[a].width=b;d[a].height=b}}resizeThumb("ID,100 );//]]>
</script>
谢谢.
推荐答案
这是我的操作方式:
$img = el.find("thumbnail").attr("url"); //Get thumnail image from rss feed
$newText = $img.replace(/\/s72\-c/, "");//replace /s72\-c with nothing
console.log($newText);
这篇关于更改媒体大小:Blogger RSS Feed上的缩略图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文