日期:2014-05-16  浏览次数:20450 次

火狐下自动伸缩框架的问题,在线等.
框架中的页面a.html
<!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.01   Transitional//EN ">
<script   language=javascript>
function   changeWin(){
alert(window.parent.location.pathname);

if(parent.topChangeFrames.rows   !=   "106,* "){
window.parent.frames.topChangeFrames.rows   =   "106,* ";
window.parent.frames.allChangeFrames.rows   =   "111,* ";
}else{

window.parent.frames.topChangeFrames.rows= "0,* ";
window.parent.frames.allChangeFrames.rows= "5,* ";
}
}
</script>
<head>
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=gb2312 "   />
<base   target= "_self ">
</head>
<body   topmargin= "0 "   leftmargin= "0 "   bottommargin= "0 "   bgcolor= "#EFEFEF ">
    <table   style= "cursor:pointer "   border= "0 "   cellpadding= "0 "   cellspacing= "0 "   height= "100% "   width= "100% ">
        <tr>
            <td   onClick= "changeWin() "   style= "width:100%;height:100% "   bgcolor= "#4279BD "   align= "center ">
<p   align= "center "> <font   color= "#FFFFFF "   size= "1 "> <b> ∵∵∵&nbsp;∵∵∵ </b> </font> </p>
    </td>
        </tr>
    </table>
</body>


在ie下运行正常.在火狐中却不行...郁闷那..


------解决方案--------------------
window.parent.document.getElementBy(id)