Changeset 12109


Ignore:
Timestamp:
2006-07-07T15:45:55+12:00 (18 years ago)
Author:
mdewsnip
Message:

Added the other regions and an example image and image map.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cic-hcap/macros/extra.dm

    r12094 r12109  
    919919   for (var i = 0; i < document.StateQueryForm.stq.options.length; i++) \{
    920920      if (document.StateQueryForm.stq.options[i].value == region) \{
    921          alert("Found " + region + " at index " + i);
     921         document.StateQueryForm.stq.options[i].selected = true;
     922     break;
    922923      \}
    923924   \}
     
    929930
    930931<p/>
    931 <a href="javascript: selectRegion('West')">West</a>
    932 
    933 <div style="float:right">
    934   <form name=StateQueryForm method=get action="_gwcgi_" onSubmit="prepareStateSearch();">
    935     <select name="stq" size="25" multiple="true" style="width: 125px;">
    936       _cicstateoptions_
    937     </select>
    938 
    939     <p/>
    940     <center><input type="submit" value="_textbeginsearch_" onClick="preparestatesearch();></center>
    941   </form>
    942 </div>
     932<a href="javascript: selectRegion('West')">West</a>&nbsp;&nbsp;&nbsp;
     933<a href="javascript: selectRegion('Mountain')">Mountain</a>&nbsp;&nbsp;&nbsp;
     934<a href="javascript: selectRegion('Southwest')">Southwest</a>&nbsp;&nbsp;&nbsp;
     935<a href="javascript: selectRegion('Midwest')">Midwest</a>&nbsp;&nbsp;&nbsp;
     936<a href="javascript: selectRegion('Southeast')">Southeast</a>&nbsp;&nbsp;&nbsp;
     937<a href="javascript: selectRegion('Northeast')">Northeast</a>
     938
     939<p/>
     940
     941<table cellpadding="0" cellspacing="0" width="100%">
     942  <tr>
     943    <td valign="top">
     944      <img src="_httpcollection_/images/us-state-map.gif" usemap="#states"/>
     945      <map name="states">
     946        <area shape="rect" coords="106,145,132,159" href="javascript: selectRegion('NM')">
     947      </map>
     948    </td>
     949    <td align="right" valign="top">
     950      <form name=StateQueryForm method=get action="_gwcgi_" onSubmit="prepareStateSearch();">
     951        <select name="stq" size="25" multiple="true" style="width: 125px;">
     952          _cicstateoptions_
     953        </select>
     954
     955    <p/>
     956    <input type="submit" value="_textbeginsearch_" onClick="preparestatesearch();>
     957      </form>
     958    </td>
     959  </tr>
     960</table>
    943961}
    944962
     
    10501068_formfunctions_ {}
    10511069
    1052 _pagescriptextra_ {}
    1053 
    10541070# Hide the "search and display results in ... order" text
    10551071_textformselect_ {}
Note: See TracChangeset for help on using the changeset viewer.