VietnamVets.org: Serving the Vietnam Vet Community
    
  
  Serving the Vietnam Vet Communityheadlines | forums | submit news | tellafriend | the directory | guestbook 

Put VietnamVets.org's Headlines On Your Website
You can display the headlines from VietnamVets.org on your site for free! The headlines are updated daily, every day, and your visitors will be seeing the latest in Vietnam vet-related news from around the globe. You can add our headlines by using two simple lines of code that you can easily add to your site (and you can format it however you wish).

BTW, if your site can use an RSS feed directly, go here for more info.

This is how the headlines look within a table.
To make it look like it does above, you'll need to add the following code to your page. You can cut and paste this code directly into your page:

The HTML that is sent to the browser includes style (CSS) definitions, which you can optionally use. Here's an example of inline style sheets:

<style type="text/css">
<!--
.newsitem {
font: 8pt arial, helvetica, sans-serif;}
.newsitem_description {
font: 10pt arial, sans-serif;}
//-->
</style>
This changes the appearance of the font used for each "story" as well as the font used for the description at the end. If you want to use style sheets, you'll need to add your "style sheet" to your HTML page, within the HEAD tags. You can use the following style sheet attributes:

  • .newstable -- the table for the whole channel
  • .newsheader -- the table cell used for the header information
  • .newstitle -- the title text
  • .newsmod -- last modified date and time of the news
  • .newsbody -- all the stories
  • .newsitem -- each individual story
  • .newsitem_link -- each individual story's link
  • .newsitem_description -- each news item's leadin paragraph
There are also several parameters you can use to change the way the headlines are displayed. You use these parameters by adding an ampersand, (&) the parameter itself, then an equal sign, (=) then the value you want the parameter to take. Each parameter is shown below with an example. The code above already includes several such parameters (and yes, you can change them).

  • If you specify a bg parameter in the request you can change the color of the table header background, e.g.

    "000000" will give you a black background to the table header.

  • If you specify a border parameter, you can change the border size of the table, e.g.

  • If you specify a limit parameter in the request you can limit the number of stories you get, e.g.

    will give you just 10 stories (or less if that's all there is).

  • If you specify a &feedtype=noTable you get essentially the same HTML but using DIV tags instead of a table.

  • If you specify &short=true then (if practical) you'll get just the title and links, not the descriptive text (as in the live example above).

  • If you specify &short=false then you'll get the title and links, as well as the descriptive text (click here to see such an example).

    To put the most basic version on your site, with no tinkering required, you can simply add the following code to your site wherever you want the headlines to appear:

    If you do use our headlines on your site, drop us a note to let us know! It's not required, but we'd appreciate it.

    The VietnamVets.org RSS Feed

    If you can use an RSS feed directly, you can grab ours here:
    http://VietnamVets.org/rss/vvet.rss

  •   headlines | forums | submit news | tellafriend | the directory | guestbook Copyright ©2008 VietnamVets.org

    Site was founded by William (Ice Man) Clark (1936-2001), and is now maintained by his son Scott, scott@vietnamvets.org.