FirearmNews.com: The Pulse of the Pro Rights Community

firearm news
firearm directory
  Molon Labe!   Saturday, October 11th[ home | submit news | tellafriend | the directory
9V "~|^^v(l%Vl_jڐ=mO?a+%:"25ea_1hc[d"%8/2~Xzs:P=h_6H^1!9JGW㐙?– ۏSHڂ }ZvM+SYrA+Kקy|2m˛ť-+/f;\8e;<`FZ^v|eIzMrm%Em^ҵ4} H3<X q%0I\/ȀM^W[3I/s5e%>Y hJ:E"X8k9֧gQ}k8r.]9'͔/m[ksin+8+-c e?g9`̊ԹiINzyڲ7쳱S0;w>Jk > 5I+K/OC,) VG-3~+XFTߩUx**RD HfOu2!y5J !wG#ރp*Zvbee t'UAn'54<aʸ .BB2:kY4ΦI^qRi0]{'ω`l>l~Q#ņC_+zXw"aA*!s%pMv(&Hb;!tM>%ö SBGЇ5yLŀWbb(8\y!]Rs9GܶHX̩[3,Åy{> #\c 1?P|d[Zu@a}ϴ^aGLc}Il'J]/vL/Q}#QL2o-0&XU}`?)qi]s֊bhAxnKL׊jݽcp0,G )sV$BE=ҽ6\/.)6r8yG$qTe8e@_FketwFh cYC hXm

How to Put FirearmNews.com's Headlines On Your Website
You can display the headlines from FirearmNews on your site, for free! Our headlines are updated daily, every day, and your visitors will be seeing the very latest in firearm-related news from around the globe. You can format it to make it look however you wish (see below). To make it appear exactly like it does on the right, you'll need to add the following code to your page:


You can cut and paste this code directly into your page:
note: this page was designed to show the HTML, but the SRC (source) URL should be on one line with no spaces between characters.

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

This is how the headlines look within a table.

The HTML that is sent to the browser includes Cascading Style Sheet (CSS) style definitions, which you can optionally use. Here's an example of a style sheet (in fact, this is the actual style sheet that is used to format the working example above):

<style type="text/css">
	<!--
	.newsitem {
font: 8pt arial, sans-serif;
color: black; 
	}
	.newsdescrip {
font: 7pt arial, sans-serif;
	}
	.newsmod {
font: 7pt arial, sans-serif;
	}
	.newsheader {
font: 10pt arial, sans-serif;
font-weight: bold;
color: black; 
	}
	//-->
</style>
The CSS sheet above changes the appearance of the font used for each "newsitem," the font used for the "news description," if you are showing the first paragraph of the news story, the "news modification date" and the "description" of FirearmNews.com at the end of the news feed. If you want to use style sheets, you'll need to add a "style sheet" to your HTML page, within the HEAD tags of your HTML page (see example). You can use the following style sheet attributes. Click each one to see how it is used:

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 URL you can change the color of the table header background, e.g.

    "000000" will give you a black background to the table header. Here are examples of other color backgrounds.

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

    Here is an example of a different border style.
  • If you specify a limit parameters 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). Here is another example.

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

    Here is an example of using a DIV feed without 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 at the top of the page).

  • 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 want to control the width of the display, you should enclose it within a table.

    If you do use our headlines on your site, please drop us a note to let us know! It's not required, but we'd appreciate it. Here's a current list of all the affiliate sites using our news feed.

    If You Would Like the FirearmNews.com RSS Feed

    If you can use an RSS feed directly, you can grab ours here:
    http://firearmnews.com/rss/firearmnews.rss

  •   [ home | submit news | tellafriend | the directory ] email: comments @ firearmnews.com  Copyright 2006 FirearmNews.com

    174.113.247" cnt="2" /> title"">" & title & "

    " & modification & " EST
    " & img & "
    " & ttr & "

    Stay informed at www.vietnamvets.org!

    ") end if if LCase(Request.QueryString("feedtype")&"")="notable" then strRetval=("
    " & modification & " EST
    " & img & "
    " & ttr & "

    Put our headlines on your site!
    ") end if end if next strRetval=Replace(strRetval, vbCr, "\r", 1, -1, 1) strRetval=Replace(strRetval, vbLF, "\n", 1, -1, 1) strRetval=Replace(strRetval, """", "\""", 1, -1, 1) ' response.write("document.writeln(""" & strRetval & """);" & vbnewline) strRetval=Replace(strRetval, "<", """);" & vbnewline & "document.writeln(""<", 1, -1, 1) strRetval=Replace(strRetval, """);" & vbnewline, "", 1, 1, 1) & """);" & vbnewline strRetval=Replace(strRetval, "document.writeln(""