如果是在另一个frame中调用的话,可以使用parent.frameid.*来调用属于同一个frameset的frame,如果是value的传递的话建议你使用session或者cookie来做。不知是否有帮助。

解决方案 »

  1.   

    这是在index页面上的
    <frameset framespacing="0" width="800" border="0" frameborder="0" cols="180,*">
      <frame name="mulu" target="main" scrolling="auto" src="left.htm" id="frmTitle" style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 170px; Z-INDEX: 2">
       <frame name="main" src="welcome.htm" target="_self" id="main" style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 100%; Z-INDEX: 1">
       <noframes>
           <body></body>
       </noframes>
    </frameset>
    现在要在welcom页面上调用id为frmTitle的frame,welcom页面是在id为main的frame上.
    function switchSysBar(){
      if (switchPoint.innerText==3){
           switchPoint.innerText=4
           document.all("frmTitle").style.display="none"
           }
      else{
           switchPoint.innerText=3
           document.getElementById("frmTitle").style.display=""
           }
       }