2016-08-22 24 views
0

フィードブロガーRSSにサムネイルメディアのサイズを変更する方法はあります。 私はテンプレートにこのJavaScriptを追加しようとしている、それは私がちょうど</body>の変更メディアのサイズ:それは、高さ72pxと幅72pxのデフォルトサイズでだ瞬間にRSSフィード(ブロガー)にサムネイルURL:

<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> 

おかげで前にこれを追加しましたワーク・取得するために管理していませんでした。ここで

答えて

0

は、私はそれをやった方法は次のとおりです。

$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); 
関連する問題