Little snippet for consideration for CASAA website.

Status
Not open for further replies.

Þornbjörg

Senior Member
ECF Veteran
Sep 27, 2009
102
29
Tampa, FL
The image you can do with or without. It is used on a government website (link links to where they keep it), therefor should be pretty much exempt from copyright issues (so long as you're not selling it anyway).

Code:
<div class="zip-call">
<h2><img src="http://images.capwiz.com/congressorg/images/sitewide/h2-get-involved.png" alt="Get Involved"></h2>
<p><em>Find your lawmakers,<br>tell them what you think</em></p>
<script language="javascript">var ZF="Your ZIP code here";</script>
<form action="http://www.congress.org/congressorg/officials/gateway/" name="lawmaker-search">
<p><input type="text" id="lawmaker-zip" name="azip" value="Your ZIP code here" size="14" onfocus="javascript:if (this.value == ZF) {this.value=''; this.style.color='#333333'}" onblur="if (this.value == '') {this.style.color = '#999999'; this.value = ZF}">
<input name="lvl" value="C" type="hidden">
<input class="general-button" type="submit" id="lawmaker-submit" value="Go"></p>
</form>
</div>

Its the code that makes the 'find your lawmakers' work. Makes a handy little form, you type in your zip, and it takes you to the congress.org website, and it tells you who your congressmen are.

Should probably have it front page, or on whichever page branch pertains most directly to law. I'd vote on front page, since its more likely to see use there.

If anyone without a host wants to see how it works, create a text file, copy and paste the contents of the code box into the text file, then save the textfile as (pick any name you want).htm and drag and drop it into a browser.

:)
 
Status
Not open for further replies.

Users who are viewing this thread