HTML导航框架

这个东西其实很简单,以前也搞过,就是关键的一点忘了。
右边的内容框架需给name一个值,如:Right;左边的导航框架里的链接需 target="Right"

main
<html>
<frameset cols="120,*">
    <frame src="left.aspx">
    <frame src="right.aspx" name="Right">
</frameset>
</html>

left
<table cellpadding="0" cellspacing="0" style="margin: 8px 8px 8px 8px; border: solid 1px #B7D8ED; background-color:White;"
                width="150">
                <tr style="padding-left: 8px; padding-right: 0px;" height="30">
                    <td width="12">
                        <img src="../images/banner.gif" />
                    </td>
                    <td class="left" onmouseover="onMover(this)" onmouseout="onMout(this)">
                        <a href="myUsers.aspx" target="Right">我的会员</a>
                    </td>
                </tr>
                 <tr style="padding-left: 8px; padding-right: 0px;" height="30">
                    <td width="12">
                        <img src="../images/banner.gif" />
                    </td>
                    <td class="left" onmouseover="onMover(this)" onmouseout="onMout(this)">
                        退出
                    </td>
                </tr>
            </table>


<html>
<frameset rows="70,*">
    <frame src="Top.aspx" frameborder="0" scrolling="no" style="border: solid 1px #B7D8ED"
        noresize="noresize" />
    <frameset cols="200,*">
        <frame src="left.aspx" frameborder="0" style="border: solid 1px #B7D8ED" noresize="noresize"
            name="left" />
        <frame src="right.aspx" frameborder="0" style="border: solid 1px #B7D8ED" noresize="noresize"
            name="Right" />
    </frameset>
</frameset>
</html>

posted @ 2008-04-10 23:28  yellowwood  阅读(4596)  评论(0编辑  收藏  举报
Never Give UP