显示或隐藏对象***.style.display="none";//隐藏
***.style.display="block";//显示
跳转页面:
onselected="location.href='http://要跳转的页面';return false;";

解决方案 »

  1.   

    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    <META NAME="Generator" CONTENT="EditPlus">
    <meta http-equiv="Content-Language" content="zh-cn">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <SCRIPT LANGUAGE="JavaScript">
    <!--
      function test(v)
      {
         if(v=="1")
     {
       document.all.text1.style.display="block";
       document.all.text2.style.display="none";
       document.all.text3.style.display="none";
     }
     if(v=="2")
     {
       document.all.text1.style.display="none";
       document.all.text2.style.display="block";
       document.all.text3.style.display="block";
     }
     if(v=="3")
     {
         window.location.href="http://www.sina.com.cn";
     }
      }
    //-->
    </script>
    </HEAD>
    <BODY>
    <INPUT TYPE="radio" NAME="test" checked onclick="test('1')">aa
    <INPUT TYPE="radio" NAME="test" onclick="test('2')">bb
    <INPUT TYPE="radio" NAME="test" onclick="test('3')">cc
    <input type="text" name="text1" style="display:none">
    <input type="text" name="text2" style="display:none">
    <input type="text" name="text3" style="display:none">
    </BODY>
    </HTML>