Thanks I think I am nearly there. When I run it it does not work. Is this code complete:
<a href="javascript:create_url()">
You said I should put this in the map.
Also here is the code for the page:
<html>
<head>
<script language='javascript'>
function create_url () {
var obj = document.frmname.rtype;
var type;
for (var i=0; i < obj.length; i++) {
if (obj.checked) type = obj.value;
}
var url = window.location.protocol + '//' + window.location.hostname + window.location.pathname + "?db=<%db%>&do=search_results&uid=default&dp=1&State=Accom&field_of_type=" + type window.location = url
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#0000FF" vlink="#0000FF" alink="#0000FF">
<div id="Layer5" style="position:absolute; width:744px; height:74px; z-index:6; left: 94px; top: 72px">
<form name=myform method=post>
<p>Select State:</p>
<p>.......
<input type=radio name=State value='NSW'>
NSW
<input type=radio name=State value='Victoria'>
VIC
<input type=radio name=State value='Northern Territory'>
NT .... </p>
<p><font size="2"><img src="Mapsa.gif" width="337" height="350" border="0" usemap="#sa"></font>
</p>
</form>
</div>
<map name="sa">
<area shape="rect" coords="2,0,329,188" href="<a href="javascript:create_url()"> ">
</map>
</body>
</html>
<a href="javascript:create_url()">
You said I should put this in the map.
Also here is the code for the page:
<html>
<head>
<script language='javascript'>
function create_url () {
var obj = document.frmname.rtype;
var type;
for (var i=0; i < obj.length; i++) {
if (obj.checked) type = obj.value;
}
var url = window.location.protocol + '//' + window.location.hostname + window.location.pathname + "?db=<%db%>&do=search_results&uid=default&dp=1&State=Accom&field_of_type=" + type window.location = url
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#0000FF" vlink="#0000FF" alink="#0000FF">
<div id="Layer5" style="position:absolute; width:744px; height:74px; z-index:6; left: 94px; top: 72px">
<form name=myform method=post>
<p>Select State:</p>
<p>.......
<input type=radio name=State value='NSW'>
NSW
<input type=radio name=State value='Victoria'>
VIC
<input type=radio name=State value='Northern Territory'>
NT .... </p>
<p><font size="2"><img src="Mapsa.gif" width="337" height="350" border="0" usemap="#sa"></font>
</p>
</form>
</div>
<map name="sa">
<area shape="rect" coords="2,0,329,188" href="<a href="javascript:create_url()"> ">
</map>
</body>
</html>