The following is my code,
//This javascript obtain the value selected at the
//dropdown box and assign it to yearval.
<script language=”JavaScript”>
function assignyear()
{
var yearval;
yearval = document.calform.year.value;
return yearval;
}
</script>
//This is the dropdown box
<td valign=”top”>
<select id=”year” name=”year” size=”1″>
<option selected value=”2003″>2003
<option value=”2004″>2004
</select>
</td>
//This is mapping for a graphic that when clicked on, it will link to the page january_2003.htm
<map name=”cal” id=”cal1″>
<area shape=”rect” coords=”96,1,156,29″ href=”january_2003.htm” alt=”January” onClick=”return assignyear()”></map>
Onclick, i like to append the value of dropdown box to the href attribute. Something like
<area shape=”rect” coords=”96,1,156,29″ href=”january_(yearval).htm” alt=”January” onClick=”return assignyear()”>