|
<body>
<form method = "post" action = "" name = "form1">
<input type = "radio" name = "ddfind" checked = "checked" id = "radio1" onclick = "check ()" />
<input type = "radio" name = "ddfind" id = "radio2" onclick = "check ()" />
</ form>
<div id = "Layer1" style = "display: block; background: # 00FFFF"> Layer 1 </ div>
<div id = "Layer2" style = "display: none; background: #CCCCCC"> Layer 2 </ div>
<script language = "javascript">
function check () {
var find = document.form1;
if (find.radio1.checked == true) {
Layer1.style.display = "block";
}
else if (find.radio2.checked == true) {
Layer2.style.dispale = "block";
}
}
</ script>
</ body>
Different radio buttons appear in different points. That prawn knows to help |
|