首页 > 代码库 > 点击切换界面

点击切换界面

 1、main.html:

<html>
    <head></head>
    <frameset cols = "200,*">
        <frame src = ‘left.html‘></frame>
        <frameset rows = ‘200,*‘>
            <frame src = "top.html" name = ""></frame>
            <frame src = "right.html" name = "gotoRight"></frame>
        </frameset>
    </frameset>
    <body></body>
</html>

2、left.html:

<html>
    <head>
        <title>
            left
        </title>
    </head>

    <body>
        <div>
            <a href = "right.html" target = "gotoRight">right1</a>
        </div>
        <div>
            <a href = "right2.html" target = "gotoRight">right2</a>
        </div>
    </body>
</html>

3、top.html

<html>
    <head></head>

    <body>
        top
    </body>
</html>

4、right.html
<html>
    <head></head>

    <body>
        right1
    </body>
</html>

5、right2.html

<html>
    <head></head>
    <body>
        right2
    </body>
</html>


点击切换界面