<script defer>
document.all.AF.value=1;
document.all.Af.value=2;
</script>
<input id=AF>
<input id=Af>

解决方案 »

  1.   

    <script language="javascript">
    function ShowMenu(ids)
    {
    var theObj = document.getElementById(ids);
    if(theObj)
    theObj.style.display=(theObj.style.display=='none')?'':'none';
    }
    </script><a href="javascript:ShowMenu('AF');">AF</a>
    <a href="javascript:ShowMenu('Af');">Af</a>
    <div id="AF" style="display:none">AF</div>
    <div id="Af" style="display:none">Af</div>目标:点击AF,显示AF,点击Af,显示Af
      

  2.   

    哈哈。我搞定了。换成document.all[ids]就OK了。。