functiontheforever(a){document.get" />
DIV如何实现类似框架跳转点击左边文本链接,然后在右边DIV块里面显示?
答:
<%@page language="java"pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+ "/";
%>
function theforever(a){
document.getElementById("content").innerHTML='';
a.href="#";
}
body { font-family:Verdana; font-size:14px; margin:0;}
#container {margin:0 auto; width:100%;}
#sidebar { float:left; width:200px; height:500px; background:#9c6;}
* html#sidebar{margin-right:-3px;}/*使用此方法解决ie 3像素bug可通过验证*/
#content { height:500px; background:#ffa;}