dynamicbar.jsp

来自「Jbuilder2006开发的严格按MVC设计模式组织开发过程」· JSP 代码 · 共 51 行

JSP
51
字号
<%@page contentType="text/html; charset=GBK"%>
<html>
<head>
<style type="text/css">
  @media all {
  IE\:CLIENTCAPS {behavior:url(#default#clientCaps)}
  }
  body { margin: 0px; padding: 0px; background-color: #d4d0c8; cursor: hand;  }
</style>
</head>
<script language="JavaScript" type="text/JavaScript">
var buttonopen = new Image();
buttonopen.src = "<%=request.getContextPath()%>/_normal/split_pic/arrowright.gif";
var buttonclose = new Image();
buttonclose.src = "<%=request.getContextPath()%>/_normal/split_pic/arrowright.gif";

function sw_frameset()
{
	var obj = parent.window.document.getElementById( "controlFv" );
	if ( obj.cols=="80%,10,*" )
	{
		obj.cols = "*,10,0";
		document.body.style.borderLeft = "solid 1px #d4d0c8";
		swbutton.src = buttonclose.src;
	} else {
		obj.cols = "80%,10,*";
		document.body.style.borderLeft = "outset 1px white";
		swbutton.src = buttonopen.src;
	}

	return true;
}

function setSize() {
  var height = oClientCaps.availHeight;
  document.all.scroll.height = height;
}
</script>
<body onload="document.body.onclick=sw_frameset; setSize()" title="收起栏目">
<table border="0" height="100%" cellpadding="0" cellspacing="0" id="scroll" background='<%=request.getContextPath()%>/_normal/split_pic/bgline2.jpg' width="8" align="center">
  <tr>
    <td align="center" valign="middle" height="100%">
      <a href="#">
        <img src="<%=request.getContextPath()%>/_normal/split_pic/arrowright.gif" border="0" height="8" width="7" id="swbutton" alt="收起栏目">
      </a>
    </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?