Importing NRAMembersCouncils.com Legislative and Events Info
(abbreviated) into a website using an IFRAME tag
Any webpage can import the below table of live information by copying and pasting a few lines of HTML...
<TABLE ALIGN=RIGHT><TR><TD>
<IFRAME width=340 height=320 marginwidth="0" marginheight="0" frameborder="0" allowtransparency="true"
SRC="http://nramemberscouncils.com/cgi-bin/leginfo.cgi?limit=10&width=310&border=1&bgcolor=e0e0e0">
</IFRAME>
</TD></TR></TABLE>
Just copy and paste the above HTML into your web page. Unless you want the table to appear differently, that's all there is to it!
Feel free to edit as desired - technical and customization details are provided below.
(NOTE that instead of this small IFRAME, you may
import our complete, comprehensive list of legislation and contact tools into your website.)
For the technically-minded...
This page allows it's content to flow around a TABLE that is right-aligned in the page.
Depending on your design requirements, you may wish to change the alignment to LEFT or CENTER.
Wherever you position the TABLE, it defines a fixed-size IFRAME which is loaded with the
abbreviated, customizable output of our "leginfo.cgi" script.
As with most HTML elements, it is relatively easy to control the WIDTH of the TABLE and IFRAME.
Setting the IFRAME "width" parameter 30 pixels wider than the CGI script's "width"
parameter provides enough horizontal area for the IFRAME to function
in all observed IFRAME-compatible browsers. (Note that in the example HTML shown above, the CGI width=310 and the IFRAME width=340.)
IFRAMES do not automatically adjust in size if the content within them grows.
Instead, IFRAMES provide fixed 'height=' and 'width=' parameters - an IFRAME will assume these values and
occupy no more and no less of your page. If the IFRAME content grows beyond the
height of the IFRAME, it sprouts a vertical SCROLL BAR. While it may seem undesireable to have part of the legislative info table
"grow" out-of-sight and have to be scrolled into view,
in one respect it is advantageous. You can set the various characteristics of the imported IFRAME and TABLE (orientation, width and height,
background color and border size) to that which best suits your page and not worry that it will
significantly change in ways that unbalance your page when content is added or removed from
NRAMembersCouncils.com.
| NOTE 1 - |
All of the links in the IFRAME are constructed to open a new browser window and NOT take your visitor offsite.
|
| NOTE 2 - |
The cgi 'limit' parameter is not implemented at this time.
|
| NOTE 3 - |
The cgi 'bgcolor' parameter does not require (or accept) the '#' character that is needed in a normal TABLE bgcolor when specifying hex color data. It also does NOT accept color keywords like 'white'.
|
| NOTE 4 - |
Adding '&format=wide' to the cgi string moves the header to the right of the bill info (for pages with more horizontal than vertical real-estate)
|
IFRAMES are reported to be compatible with these browsers and later: IE 3, NS 6, iCab, WebTV Plus,
Opera 4.0, Lynx 2.8.2 and Mozilla M12 Firefox.