The following is the code used to generate the Tech News
page on www.sambar.com (/news.stm). This code uses a basic scripting package
that is included in the Sambar Server.
If you're running the Sambar Server, the only functionality you need
to have this script run well on your own site is to enable the XML cache
so that these RSS feeds can be downloaded and cached periodically.
The script follows...
<link rel="stylesheet" href="/style.css" type="text/css">
<script language=javascript>
<!--
function _gid(a){return document.getElementById(a)}
function show(mid)
{
if (_gid("l_"+mid).className=="closed")
{
_gid("l_"+mid).className="opened";
_gid("m_"+mid).className="shown";
}
else
{
_gid("l_"+mid).className="closed";
_gid("m_"+mid).className="hidden";
}
return false;
}
//-->
</script>
<table align=center border=0 cellpadding=4 cellspacing=4>
<tr valign=top><td nowrap width=50%>
<fieldset>
<legend class="headline">Tech Memeorandum</legend>
<RCXrss id=1 url="http://tech.memeorandum.com/index.xml" maxitems=5 maxstrlen=50 maxwait=5 cacherefresh=14400>
</fieldset>
</td><td nowrap width=50%>
<fieldset>
<legend class="tech">Yahoo Technology</legend>
<RCXrss id=2 url="http://rss.news.yahoo.com/rss/tech" maxitems=5 maxstrlen=50 maxwait=5 cacherefresh=14400>
</fieldset>
</td></tr>
<tr valign=top><td nowrap width=50%>
<fieldset>
<legend class="tech">US-CERT</legend>
<RCXrss id=3 url="http://www.us-cert.gov/current/index.rdf" maxitems=5 maxstrlen=50 maxwait=5 cacherefresh=14400>
</fieldset>
</td><td nowrap width=50%>
<fieldset>
<legend class="tech">Gizmodo</legend>
<RCXrss id=4 url="http://feeds.gawker.com/gizmodo/excerpts.xml" maxitems=5 maxstrlen=50 maxwait=5 cacherefresh=14400>
</fieldset>
</td></tr>
<tr valign=top><td nowrap width=50%>
<fieldset>
<legend class="tech">NPR Technology</legend>
<RCXrss id=5 url="http://www.npr.org/rss/rss.php?id=1019" maxitems=5 maxstrlen=50 maxwait=5 cacherefresh=14400>
</fieldset>
</td><td nowrap width=50%>
<fieldset>
<legend class="tech">GovTech</legend>
<RCXrss id=6 url="http://www.govtech.net/rss/topstories.php" maxitems=5 maxstrlen=50 maxwait=5 cacherefresh=14400>
</fieldset>
</td></tr>
<tr valign=top><td nowrap width=50%>
<fieldset>
<legend class="headline">Digg</legend>
<RCXrss id=7 url="http://www.digg.com/rss/index.xml" maxitems=5 maxstrlen=50 maxwait=5 cacherefresh=14400>
</fieldset>
</td><td nowrap width=50%>
<fieldset>
<legend class="headline">Slashdot</legend>
<RCXrss id=8 url="http://rss.slashdot.org/Slashdot/slashdot" maxitems=5 maxstrlen=50 maxwait=5 cacherefresh=14400>
</fieldset>
</td></tr>
</table>