日期:2014-05-18  浏览次数:20606 次

JSP如何实现http://community.csdn.net/这样的左右框架移动?
RT。
两个框架,但可以左右移动或上下移动.

------解决方案--------------------
frame即可
------解决方案--------------------
看IE或浏览器的源码,呵呵
------解决方案--------------------
和JSP无关。resize....
------解决方案--------------------
frame,html
------解决方案--------------------
<frameset id= "sidebar_content " cols= "230, * " frameborder= "1 " border= "6 " framespacing= "5 " bordercolor= "#A1C7F9 ">
中framespacing设一个不等于0的数
------解决方案--------------------
<%@ page language= "java " contentType= "text/html;charset=GB2312 " %>
<html>
<head>
<title> switchV.jsp </title>
<script language= "javascript ">
var panelStatus= "open ";
var panelWidth=180;

function panelSwitch(){
if (panelStatus== "open ")
closePanel();
else
openPanel();
}
function closePanel(){
panelStatus= "close ";
window.parent.fraBODY.cols= '0,0,7,* ';
window.point.src= "/EAM/global/images/ui/switchV_R.gif ";
window.point.alt= "展开 ";
}
function openPanel(){
panelStatus= "open ";
window.parent.fraBODY.cols= '2,180,7,* ';
window.point.src= "/EAM/global/images/ui/switchV_L.gif ";
window.point.alt= "关闭 ";
}
</script>
</head>
<body bgcolor= "#aab3b3 " background= "/EAM/global/images/ui/switchV_bg.gif " topmargin= "0 " leftmargin= "0 " rightmargin= "0 " bottommargin= "0 ">
<table width= "100% " height= "100% " border= "0 " cellpadding= "0 " cellspacing= "0 ">
<tr>
<td valign= "center "> <img id= "point " src= "/EAM/global/images/ui/switchV_L.gif " onclick= "javascript:panelSwitch(); " style= "cursor:hand; " alt= "关闭 "> </td>
</tr>
</table>

</body>
</html>

直接用就可以了,frame