We can see the navigation bar function in the upper left corner of the csdn forum. We will simulate this function below, and use js to provide a simple left navigation bar hiding function in Asp.net.
First, create a framework page named main. aspx.
<! -- Main. aspx mainCode-->
<SCRIPT>
Document. Write ("<frameset rows = '54, 28, *, 19 'frameborder = 'no' border = '0' framespacing = '0'> ");
Document. Write ("<frame src = 'title. aspx 'name = 'topframework' scrolling = 'no' noresize> ");
Document. Write ("<frame src = 'bar. aspx 'name = 'mainnaviframe' scrolling = 'no'> ");
<! -- Left. aspx is the navigation page, and menuswitch. aspx is the interactive button page -->
Document. Write ("<frameset name = 'Forum 'Cols = '2017, 8, * 'frameborder = 'no' border = '0' framespacing = '0'> ");
Document. Write ("<frame src = 'left. aspx 'name = 'leftframe' scrolling = 'auto'> ");
Document. Write ("<frame src = 'menuswitch. aspx 'name = 'swichframe' scrolling = 'no'> ");
Document. Write ("<frameset rows = '2017, * 'frameborder = 'no' border = '0' framespacing = '0'> ");
Document. Write ("<frame src ='' name = 'mainframework' scrolling = 'no'> ");
Document. Write ("</frameset> ");
Document. Write ("<frame src = 'bottom. aspx 'name = 'bottomframework' scrolling = 'no'> </frameset> ");
</SCRIPT>
<! -- Menuswitch. js main code -->
VaR leftwin = true;
function changewin ()
{< br> If (leftwin = true)
{< br> parent. forum. cols = "0, 8, *";
parent. swichframe. menuswitch. innerhtml = " ";
leftwin = false;
}< br> else
{< br> parent. forum. cols = "150,8, *";
parent. swichframe. menuswitch. innerhtml = " ";
leftwin = true;
}< BR >}