六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 111|回复: 0

use frame

[复制链接]

升级  86.33%

139

主题

139

主题

139

主题

举人

Rank: 3Rank: 3

积分
459
 楼主| 发表于 2013-2-7 20:33:57 | 显示全部楼层 |阅读模式
var passTime=self.parent.window.frames["childMainFrame"];
 
 
-------------------------------------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <title>index</title>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
        <!--
        style="border: 0px solid red;"
         -->
    </head>
    <frameset
        border="1"
        framespacing="0"
        style="border: 0px solid red;"
        rows="100,*,50">
        <frame
            frameborder="1"
            bordercolor="red"
            id="topFrame"
            name="topFrame"
            scrolling="no"
            noresize="noresize"
            src="top.html"
            style="border-bottom: solid blue 1px;"
            >
        <frameset
            border="1"
            framespacing="0"
            style="border: 0px solid red;"
            cols="150,*">
            <frame
                frameborder="1"
                bordercolor="red"
                id="leftFrame"
                name="leftFrame"
                noresize="noresize"
                src="left.html"
                title="left"
                style="border-right: solid blue 1px"
                >
            <frame
                frameborder="1"
                bordercolor="red"
                src="main.html"
                id="mainFrame"
                noresize="noresize"
                name="mainFrame"
                title="main"
                >
        </frameset>
        <frame
            frameborder="1"
            bordercolor="red"
            noresize="noresize"
            name="bottomFrame"
            src="bottom.html"
            style="border-top: solid blue 1px"
            >
    </frameset>
    <noframes>
        <body>
        </body>
    </noframes>
</html>
 
 
-------------------------------------------------------------------------------------------
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <title>left page</title>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    </head>
    <script type="text/javascript">
        function link(){
            alert(":"+parent.window.frames["topFrame"]);
            alert(self.parent.window.frames["mainFrame"].document.getElementById("info").value);
        }
    </script>
    <body>
        <a href="view.html" target="topFrame">查看</a>
        <br />
        <input type="button" value="link" >
        <br />

        <a href="logout.html" target="mainFrame">退出</a>
    </body>

</html>
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表