Display Translatum RSS feeds on your website!

spiros · 1 · 13527

spiros

  • Administrator
  • Hero Member
  • *****
    • Posts: 854558
    • Gender:Male
  • point d’amour
Ever wondered how to convert an RSS feed to html and display it on your website?

You would like your visitors to know the latest news about Greek translation?

Just paste the snippets of code below in the code of your web page at the point where you want the feed to appear. All links will open in new pages.

Translatum RSS with description

Code: [Select]
<script language="JavaScript" src="http://jade.mcli.dist.maricopa.edu/feed/feed2js.php?src=http%3A%2F%2Fwww.translatum.gr%2Fforum%2Findex.php%3Faction%3D.xml&chan=y&num=10&targ=y&html=p" type="text/javascript"></script>

<noscript>
<a href="http://jade.mcli.dist.maricopa.edu/feed/feed2js.php?src=http%3A%2F%2Fwww.translatum.gr%2Fforum%2Findex.php%3Faction%3D.xml&chan=y&num=10&targ=y&html=y">View RSS feed</a>
</noscript>

Translatum RSS without description

Code: [Select]
<script language="JavaScript" src="http://jade.mcli.dist.maricopa.edu/feed/feed2js.php?src=http%3A%2F%2Fwww.translatum.gr%2Fforum%2Findex.php%3Faction%3D.xml%3Btype%3Drss&chan=y&num=7&targ=y&html=p" type="text/javascript"></script>

<noscript>
<a href="http://jade.mcli.dist.maricopa.edu/feed/feed2js.php?src=http%3A%2F%2Fwww.translatum.gr%2Fforum%2Findex.php%3Faction%3D.xml%3Btype%3Drss&chan=y&num=7&targ=y&html=y">View RSS feed</a>
</noscript>

You can even use css to style it. This is an example css (you can simply include it in your own css and/or modify it if you like).

Code: [Select]
/* begin styles for RSS Feed */

.rss_box {
margin: 0.5em;
width: 440px;
background-color: #AEBB95;
         border: 1px dashed #AEBB95;

}
.rss_items {
margin-top:0px;
padding:0.5em; 0.5em;
margin-left:0px;
color:#FFFFFF;
}
p.rss_title {padding:0.5em;}
.rss_title {
text-decoration: none;
font-family: small tahoma, "Bitstream Vera Sans", "Trebuchet MS", "Lucida Grande", lucida, helvetica, sans-serif;
font-size: 10px;
background-color:##AEBB95;
color:#000;
font-weight:bold;
margin: 0px;
padding:0em;
text-align: left;
}

.rss_item  {
  font-family: small tahoma, "Bitstream Vera Sans", "Trebuchet MS", "Lucida Grande", lucida, helvetica, sans-serif;
  font-size: 10px;
  font-weight : normal;
  list-style:none;
  padding-bottom:1em;
}

.rss_item a {
text-decoration : none;
color: white;
font-size: 12px;
font-weight:light;
font-family:small tahoma, "Bitstream Vera Sans", "Trebuchet MS", "Lucida Grande", lucida, helvetica, sans-serif;
}

.rss_item a:visited {
color:white;
}

.rss_date {
font-size: 85%;
font-weight : normal;
color: #fff;
}
« Last Edit: 21 Jul, 2005, 02:46:19 by spiros »


 

Search Tools