I believe the browser only remembers the state of forms controls, but not page content, you should not design your page this way

解决方案 »

  1.   

    建议:你在点击单选框的时候用 cookie 将这个值记录下来,且此页面要不被缓存。然后再写上,当页面被加载的时候先读一下COOKIE里是否有这个值,若有则按此值来控制显示哪个层!
      

  2.   

    <script language="javascript">
    <!--
    function swDIV()
    {
    if (document.all.uors[0].checked)
    {document.all["Layer12"].style.display="none";
    document.all["Layer11"].style.display="block"}
    else
    {document.all["Layer11"].style.display="none";
    document.all["Layer12"].style.display="block"}
    }//-->
    </script>
    <body onload=swDIV()>
    <input type="radio" name="uors" value="1" checked  onclick="swDIV()">
    aa<input type="radio" name="uors" value="2" onclick="swDIV()">
    bb
                                        
    <div id="Layer11" style="display:block"> 
    aaaaaaaa
      </div>
    <div id="Layer12" style="display:none">
    bbbbbbbb
    </div>