dynamicbar_r.jsp

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

JSP
41
字号
<%@page contentType="text/html; charset=GBK"%>
<html>
<head>
<style type="text/css">
  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/arrow.gif";
var buttonclose = new Image();
buttonclose.src = "<%=request.getContextPath()%>/_normal/split_pic/arrow.gif";

function sw_frameset()
{
	var obj = parent.window.document.getElementById("controlRv");
	if ( obj.rows=="71,7,*" )
	{
		obj.rows = "0,10,*";
                document.body.style.cursor = "hand";
		swbutton.src = buttonclose.src;
	} else {
		obj.rows = "71,7,*";
                document.body.style.cursor = "hand";
		swbutton.src = buttonopen.src;
	}
	return true;
}
</script>

<body onload="document.body.onclick=sw_frameset;" title="收起栏目">
<table cellpadding="0" cellspacing="0" width="100%" align="center" background="<%=request.getContextPath()%>/_normal/split_pic/bgline.jpg">
  <tr>
    <td align="center" valign="top" height="9"><a href="#" ><img src="<%=request.getContextPath()%>/_normal/split_pic/arrow.gif" border="0" height="8" width="7" id="swbutton" alt="收起栏目"></a></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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