框架页代码如下<HTML ><HEAD><TITLE>Title</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="/css/style.css" type=text/css rel=stylesheet>
<SCRIPT>
function findObj(theObj, theDoc)
{
var p, i, foundObj;
if(!theDoc) theDoc = document;
if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
{
theDoc = parent.frames[theObj.substring(p+1)].document;
theObj = theObj.substring(0,p);
}
if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
for (i=0; !foundObj && i < theDoc.forms.length; i++)
foundObj = theDoc.forms[i][theObj];
for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++)
foundObj = findObj(theObj,theDoc.layers[i].document);
if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
return foundObj;
}
</SCRIPT>
<style type="text/css">
<!--
body {
BORDER-RIGHT: 0px; BORDER-TOP: 0px; MARGIN: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px; font-size: 9pt;
text-decoration: none;
margin-top: 0px;
}
.ctrlbar {
background-color: #D4D0C8;
}
.explorer {
BORDER-RIGHT: 1px inset; BORDER-TOP: 1px inset; BORDER-LEFT: 1px inset; BORDER-BOTTOM: 1px inset; BACKGROUND-COLOR: #ffffff
}
.ctbutton {
BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 8px; BORDER-BOTTOM-WIDTH: 1px; MARGIN-BOTTOM: 100px; WIDTH: 8px; FONT-FAMILY: "Arial Narrow"; HEIGHT: 100px; BACKGROUND-COLOR: #eeeeee; BORDER-RIGHT-WIDTH: 1px
}
-->
</style>
</HEAD>
<BODY>
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width=150 id=menubar class=explorer>
<IFRAME id=menuframe name=menuframe src="left.jsp" frameBorder=0 width="100%" height="100%"></IFRAME>
</TD>
<TD class=ctrlbar width=1><BUTTON
onmouseup="with(findObj('menubar').style){display=display=='none'?'':'none';this.innerText=display=='none'?'>':'<'}"
class=ctbutton onMouseOver="this.style.backgroundColor='#ffffff'"
onfocus=blur();
onmouseout="this.style.backgroundColor='#eeeeee'"><</BUTTON></TD>
<TD class=explorer>
<IFRAME id=browserframe name=browserframe src="right.jsp" frameBorder=0 width="100%" height="100%"></IFRAME>
</TD></TR></TBODY></TABLE></BODY></HTML>
左边框架的代码如下<%@ page language="java" contentType="text/html; charset=GBK"%>
<%@ page import="com.sinolife.query.*,java.math.*,java.text.*,java.util.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>生命人寿天津分公司统计信息系统</TITLE>
<META http-equiv=Content-Type content="text/html; charset=GBK">
<LINK href="/css/style.css" type=text/css rel=stylesheet>
<link href="/css/CalendarControl.css" rel="stylesheet" type="text/css">
<script src="/js/CalendarControl.js" language="javascript"></script>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<BODY leftMargin=0 topMargin=0 rightMargin=0 style="overflow-x:auto" background="">
<script language="javascript" src="menu.js"></script>
</body>
</html>这样写完代码之后左边树形结构的框架,只有垂直滚动条,没有水平滚动条,如果文字超出宽度以后,会自动折行,我想要下面出滚动条的效果,请问高手如何实现
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="/css/style.css" type=text/css rel=stylesheet>
<SCRIPT>
function findObj(theObj, theDoc)
{
var p, i, foundObj;
if(!theDoc) theDoc = document;
if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
{
theDoc = parent.frames[theObj.substring(p+1)].document;
theObj = theObj.substring(0,p);
}
if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
for (i=0; !foundObj && i < theDoc.forms.length; i++)
foundObj = theDoc.forms[i][theObj];
for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++)
foundObj = findObj(theObj,theDoc.layers[i].document);
if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
return foundObj;
}
</SCRIPT>
<style type="text/css">
<!--
body {
BORDER-RIGHT: 0px; BORDER-TOP: 0px; MARGIN: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px; font-size: 9pt;
text-decoration: none;
margin-top: 0px;
}
.ctrlbar {
background-color: #D4D0C8;
}
.explorer {
BORDER-RIGHT: 1px inset; BORDER-TOP: 1px inset; BORDER-LEFT: 1px inset; BORDER-BOTTOM: 1px inset; BACKGROUND-COLOR: #ffffff
}
.ctbutton {
BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 8px; BORDER-BOTTOM-WIDTH: 1px; MARGIN-BOTTOM: 100px; WIDTH: 8px; FONT-FAMILY: "Arial Narrow"; HEIGHT: 100px; BACKGROUND-COLOR: #eeeeee; BORDER-RIGHT-WIDTH: 1px
}
-->
</style>
</HEAD>
<BODY>
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width=150 id=menubar class=explorer>
<IFRAME id=menuframe name=menuframe src="left.jsp" frameBorder=0 width="100%" height="100%"></IFRAME>
</TD>
<TD class=ctrlbar width=1><BUTTON
onmouseup="with(findObj('menubar').style){display=display=='none'?'':'none';this.innerText=display=='none'?'>':'<'}"
class=ctbutton onMouseOver="this.style.backgroundColor='#ffffff'"
onfocus=blur();
onmouseout="this.style.backgroundColor='#eeeeee'"><</BUTTON></TD>
<TD class=explorer>
<IFRAME id=browserframe name=browserframe src="right.jsp" frameBorder=0 width="100%" height="100%"></IFRAME>
</TD></TR></TBODY></TABLE></BODY></HTML>
左边框架的代码如下<%@ page language="java" contentType="text/html; charset=GBK"%>
<%@ page import="com.sinolife.query.*,java.math.*,java.text.*,java.util.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>生命人寿天津分公司统计信息系统</TITLE>
<META http-equiv=Content-Type content="text/html; charset=GBK">
<LINK href="/css/style.css" type=text/css rel=stylesheet>
<link href="/css/CalendarControl.css" rel="stylesheet" type="text/css">
<script src="/js/CalendarControl.js" language="javascript"></script>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<BODY leftMargin=0 topMargin=0 rightMargin=0 style="overflow-x:auto" background="">
<script language="javascript" src="menu.js"></script>
</body>
</html>这样写完代码之后左边树形结构的框架,只有垂直滚动条,没有水平滚动条,如果文字超出宽度以后,会自动折行,我想要下面出滚动条的效果,请问高手如何实现
楼主【lifetest】截止到2008-07-09 15:53:52的历史汇总数据(不包括此帖):
发帖的总数量:0 发帖的总分数:0 每贴平均分数:0
回帖的总数量:0 得分贴总数量:0 回帖的得分率:0%
结贴的总数量:0 结贴的总分数:0
无满意结贴数:0 无满意结贴分:0
未结的帖子数:0 未结的总分数:0
结贴的百分比:---------------------结分的百分比:---------------------
无满意结贴率:---------------------无满意结分率:---------------------
如何结贴请参考这里:http://topic.csdn.net/u/20080501/09/ef7ba1b3-6466-49f6-9d92-36fe6d471dd1.html
<frameset rows="85,*,24" frameborder="NO" border="0" framespacing="0">
<frame name="topFrame" scrolling="NO" src="../frame/top.jsp" noresize >
<frameset cols="150,*" frameborder="NO" border="0" framespacing="0" rows="*">
<frame name="leftFrame" scrolling="YES" noresize src="../frame/<%=file_name%>">
<frame name="rightFrame" src="../frame/right.jsp" scrolling="YES">
</frameset>
<frame name="bottomFrame" scrolling="NO" noresize src="../frame/bottom.jsp">
</frameset>
要设置哪里滚动条可以看看DHTML的帮助文档
我就想做出CSDN论坛的那种效果
baidu下看看~!