Click to See Complete Forum and Search --> : How to customzie RSS feed displays?


firegash
09-17-2003, 06:45 PM
Hi,

I want to include RSS feeds on my site. I obtained example one's code from About.com - http://classicalmusic.about.com/b/s.htm

EXAMPLE ONE:

<SCRIPT LANGUAGE=JavaScript SRC=http://www.wcc.vccs.edu/services/news/channel.asp?
c=http://z.about.com/6/g/classicalmusic/blog/index.xml&bg=ffffff&li
mit=10&target=_blank&border=0&refresh=true></SCRIPT>

EXAMPLE TWO:

<script language="JavaScript" src="http://z.about.com/6/js/b.txt?s=classicalmusic"></script>
<script>
function Items(t,u,d){while(d.indexOf("\"")!=-1){d=d.replace("\"","");}
document.writeln('<a href="'+u+'" title="'+d+'">'+t+'</a><br>')}
function ShowHeadlines(c){
var i=0; //counter
var l=this.zIBlgI.length-1; //length of the item array
c=(c)?(c*3)-1:29; //calculate how many links to display[default 10]
if(c&&l>c)l=c; //make sure items to display is less than number of items

var h;
h=('<a href="http://about.com">')
h=('<img src="http://z.about.com/d/lg/rss.gif" border=0></a><br>')
h+=(' <a href="'+zIBlg[1]+'">'+zIBlg[0]+'</a><br>')
h+=('Read the current <a href="http://about.com">About.com</a> Headlines:<br>')
document.write(h);
while(i<l)Items(this.zIBlgI[i++],this.zIBlgI[i++],this.zIBlgI[i++]);
}

ShowHeadlines(7)
</script>

You can how these examples look here:
http://www.contrapuntal.org/test.html

I want to my rss feed to look like example two, but that relies on this tool, found here:
http://www.wcc.vccs.edu/services/news/

So, how can I modify example one's code to make it look like example two? I searched the web, and there's a bunch of tutorials on how to create a rss file, but not a single tutorial on customizing a rss feed. Maybe you guys know of a site that teaches you how to modify javascript to display the rss feed the way I want?

Thanks! :)