meinaru þá eitthvað svona:
<html>
<head>
<title></title>
<script language=“JavaScript”>
<!–
function showhide(what){
if (what.style.display=='none') {
what.style.display='';
} else{
what.style.display='none';
}
}
function showchange(what1, what2, selbox)
{
if (selbox.selectedIndex == 0)
{
what1.style.display='';
what2.style.display='none';
}
else if (selbox.selectedIndex == 1)
{
what1.style.display='none';
what2.style.display='';
}
}
–>
</script>
</head>
<body>
<table cellpadding=“5” cellspacing=“0” border=“0” width=“500” align=“center”>
<tr>
<td><b>Dropdownið sem á að breyta síðunni:</b>
<select onchange=“showchange(val1,val2,this)”>
<option>1</option>
<option>2</option>
</select>
</td>
</tr>
<tr><td> <span id=“menu1” onClick=“showhide(val1);showhide(val2)” style=“cursor: hand”>Smelltu hér til að skipta</span>
</td></tr>
<tr id=“val1” style=“display: ‘none’”>
<td>
<table>
<tr><td><input type=“text”></td></tr>
<tr><td><input type=“text”></td></tr>
<tr><td><input type=“submit” value=“Skrá”></td></tr>
</table>
</td>
</tr>
<tr id=“val2”>
<td>
<table>
<tr><td><input type=“text”></td></tr>
<tr><td><input type=“text”></td></tr>
<tr><td><input type=“text”></td></tr>
<tr><td><input type=“checkbox”></td></tr>
<tr><td><input type=“submit” value=“Skrá”></td></tr>
</table>
</td>
</tr>
</table>
</body>
</html><br><br>AHS - í gegnum alltsaman
________________________________