在top.html页中写JS脚本控制bottom.html中的元素显示提示信息应该没问题。
parent.frames["bottom"] 

解决方案 »

  1.   

    不大明白,能不能说清楚点,我不会javascript的啊,公司要我做这个功能,我只好到处找代码了,所以最好给我些原码。。3Q
      

  2.   

    parent.frames["bottom"]就可以控制框架bottom中的元素了
      

  3.   

    在子页面的body加上title='注释'
      

  4.   

    我要实现的功能是top.html里有个菜单,当鼠标移动到某个菜单上时在bottom.html里显示对应的解释
      

  5.   

    框架页:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    </head><frameset rows="80,*" frameborder="NO" border="0" framespacing="0">
      <frame src="top.htm" name="top" scrolling="NO" noresize >
      <frame src="bottom.htm" name="bottom">
    </frameset>
    <noframes><body>
    </body></noframes>
    </html>
    top.htm 页
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    <script>
    function myFun()
    {
    var bottomF =  parent.frames["bottom"];
    //alert(bottomF);
    bottomF.document.getElementById("div").innerText = "我的提示信息"
    }
    </script>
    </head><body>
    <input type="button" value="在bottom显示内容" onClick="myFun()">
    </body>
    </html>
    bottom.htm页
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    </head><body>
    <div id= "div"></div>
    </body>
    </html>
    我做了一个简单的例子,希望对你有帮助
      

  6.   

    http://www.pc30.com/wc/java1/javascr3.html
    也许这个可以给你启发