主页面 <frameset name=MainFrame rows=* cols=* framespacing= frameborder= border= id=MainFrame> <frame name=LeftFrame src=leftaspx scrolling=auto noresize=true > <frame name=HideFrame src=HideBaraspx scrolling=no noresize=true> <frame name=WorkFrame src=contentaspx> </frameset> HideBaraspx代码 <%@ Page Language=C# AutoEventWireup=true CodeFile=TreeHideBaraspxcs Inherits=Energy_TreeHideBar %> <html xmlns= > <head id=Head runat=server> <title>NavigationHide</title> <style type=text/css> <! body { marginleft: px; margintop: px; backgroundimage: url(/App_Themes/Image/bargif); borderright: #AC px solid; } > </style> </head> <script language=JavaScript type =text/javascript> function ChangeVisible() { if(parentdocumentgetElementById(MainFramels != *) { parentdocumentgetElementById(MainFramels = *; nuSwitchinnerHTML = <a # onclick=ChangeVisible();><img src=index_arrowgif width= height= border=></a>; } else { parentdocumentgetElementById(MainFramels = *; nuSwitchinnerHTML = <a # onclick=ChangeVisible();><img src=index_arrowgif width= height= border=></a>; } } </script> <body > <table width= height=% border= cellpadding= cellspacing= background=Image/bargif> <tr> <td valign=middle id=menuSwitch><a # onclick=ChangeVisible();><img src=index_arrowgif width= height= border=></a></td> </tr> </table> </body> </html> |