私はこのコードを使用しています:
$(document).ready(function() {
setRSSFeed('#menu');
$('#menu').change(function() {
setRSSFeed(this);
});
function setRSSFeed(obj) {
var feedurl = $('option:selected', obj).val();
if (feedurl) {
$('#feed').rssfeed(feedurl);
}
}
});
そして、私は(ほぼ)すべてを試しましたが、次のものを配置する場所を見つけることができないようです:
snippet=false
header=false
ヘッダーを削除して、使用している RSS フィードから写真を取得できるようにします。
私が使用しているプラグインは zrssfeed 1.2 で、他の構成では上記の設定の両方を使用できます...
それはlibです:
(function(l){l.fn.rssfeed=function(b,h,w){h=l.extend({limit:10,offset:1,header:!0,titletag:"h4",date:! 0,dateformat:"datetime",content:!0,snippet:!0,media:!0,showerror:!0,errormsg:"",key:null,ssl:!1,linktarget:"_self",linkredirect: "",linkcontent:!1,sort:"",sortasc:!0,historical:!1},h); return this.each(function(z,q){var u=l(q),f=" ";h.ssl&&(f="s");u.hasClass("rssFeed")||u.addClass("rssFeed");if(null==b)return!1;0'+b.title+" ");m+='
- ';for(f=e.offset;fa?a="< 1 分":(3600>a?(a=Math.round(a/60)-1,c="min"):86400>a? (a=Math.round(a/3600)-1,c="hour"):604800>a?(a=Math.round(a/86400)-1,c="day"):(a=数学.round(a/604800)-1,c="week"),1'+g.title+"";e.date&&a&&(j[d].html+=""+a+"");e.content&&(g =e.snippet&&""!=g.contentSnippet?g.contentSnippet:g.content,e.linkcontent&&(g=''+g+""),j[d].html+="
「+g+」
");if(e.media&&0メディア ファイル- ';for(g=0;g'+r.split("/").pop()+" ("+s+", ",s=Math.floor(Math.log(t)/Math.log() 1024)),t=(t/Math.pow(1024,Math.floor(s))).toFixed(2)+" "+"bytes kb MB GB TB PB".split(" ")[s]; c.html=y+(r+t+")")}j[d].html+="
「+d+」
")})})};var p=function(b){b+="";2>b.length&& (b="0"+b);return b},x=function(b){return"Jan 2 月 3 月 4 月 5 月 6 月 7 月 8 月 9 月 10 月 11 月 12 月".split(" ")[b]}})(jQuery);