电脑故障

位置:IT落伍者 >> 电脑故障 >> 浏览文章

FrameSet左右收缩编码


发布日期:2021/8/25
 

主页面

<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>

上一篇:GridView中的超链接

下一篇:Windows Communication Foundation介绍(一)(1)