//================================================================================ // 13r2a.php - 13th RSS1.0 2 Anything - vs1.0 // copyright(c)2002 Daniel Pupius (13thparallel.org) // // PHP script: // XML source: // main template: // item template: //================================================================================ var newsFeed = { title: "", link: "", description: "", imageLink: "", imageURL: "", imageTitle: "", items: new Array( null ) }; // Now, the code below here is used to output the above data into HTML. I have // chosen to use document.write(), in this example, so that the feed will work // with older browsers. There are more imaginative ways that you could display // the feed, and if you use "numItems" and "itemNo" variables you could do some // pretty cool, dynamic things! Let us know if you do!! document.writeln(''); document.writeln('

' + newsFeed.title + '

'); document.writeln('

' + newsFeed.description + '

'); document.writeln('
'); //miss out last item, as it is the null value for(var i=0; i' + item.title + '
'); document.writeln(item.description + '
'); document.writeln('go »

'); }