<input type="radio" name="bgcolor"  ONCLICK="document.bgColor='cccccc';parent.rightfrm.document.bgColor='cccccc'">

解决方案 »

  1.   

    出现错误
    ‘parent.rightfrm.document’不是对象
    筐架页面
    <frameset cols="130,*" frameborder="no" border="1" framespacing="0"> 
      <frame name="left" scrolling="auto" frameborder="YES" src="left.asp">
      <frame name="main" scrolling="auto" frameborder="YES" src="main.asp">
    </frameset>
    <noframes>
    </noframes>左栏<FORM METHOD="POST" NAME="bgcolor" target="main">
      <input type="radio" name="bgcolor"  ONCLICK="document.bgColor='cccccc'">
      <input type="radio" name="bgcolor"  ONCLICK="document.bgColor='ffcc00'">
    </form>
      <SCRIPT LANGUAGE="JavaScript"><!-- hidefunction goHist(a) {   history.go(a);}//--></script>右栏
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <LINK href="main.css" rel=STYLESHEET>
    <body bgcolor="#f8f8d0">
    暂无内容
      

  2.   

    <input type="radio" name="bgcolor"  ONCLICK="document.bgColor='cccccc';parent.main.document.bgColor='cccccc'">
      

  3.   

    seabell(百合心) 请在帮一下
      

  4.   

    <script>
    function setcolor(obj)
    {
    document.bgColor=obj.value;
    parent.main.document.bgColor=obj.value;
    }
    </script>
    <FORM METHOD="POST" NAME="bgcolor" target="main">
    <select onchange=setcolor(this)>
    <option value=red selected>red
    <option value=yellow>yellow
    <option value=orange>orange
    <option value=green>green
    <option value=blue>blue
    </select>
    </form>