jsp里面写一些JavaScript的一些函数,可是没有效果,为什么(100分)

  • 主题发起人 主题发起人 zqs10597249
  • 开始时间 开始时间
Z

zqs10597249

Unregistered / Unconfirmed
GUEST, unregistred user!
JBuilder 7
t_i.jsp
<%@ page contentType="text/html;
charset=GB2312" %>
<html>
<head>
<script language="JavaScript">
function oa_tool(){
if(window.parent.oa_frame.cols=="0,16,*"){
frameshow.src="images/p_l.gif";
oa_tree.title="隐藏列表"
window.parent.oa_frame.cols="150,16,*";
}
else
{
frameshow.src="images/p_2.gif";
oa_tree.title="显示列表"
window.parent.oa_frame.cols="0,16,*";}
}
</script>
</head>
<body text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#ff6600">
<table width="16" border="0" height="100%" cellpadding="0" cellspacing="0" align="left">
<tr align="center">
<td background="images/bg_1.gif">
<div id=oa_tree onclick="oa_tool();" title=隐藏列表><img id=frameshow src="images/p_l.gif" ></div>
</td>
</tr>
</table>
</body>
</html>
不能实现我的效果
 
谁有JavaScript脚本的分割条?
 
隐藏左边框架的例子代码,拿去改一下吧:
<HTML><HEAD>
<META content="text/html;
charset=gb2312" http-equiv=Content-Type>
<STYLE>.navPoint {
COLOR: red;
CURSOR: hand;
FONT-FAMILY: Webdings;
FONT-SIZE: 9pt
}
P {
FONT-SIZE: 9pt
}
TD {
FONT-SIZE: 9pt
}
A {
COLOR: #333399;
FONT-SIZE: 9pt;
TEXT-DECORATION: none
}
A.bold {
FONT-SIZE: 9pt;
FONT-WEIGHT: bold
}
A:visited {
COLOR: #333399
}
A:hover {
COLOR: #ff6600
}
</STYLE>
<SCRIPT>
function switchSysBar(){
if (switchPoint.innerText==3){
switchPoint.innerText=4
document.all("lft").style.display="none"
}
else
{
switchPoint.innerText=3
document.all("lft").style.display=""
}
}
function changedisplay(){
if (topid.innerText=="▲"){
topid.innerText="▼"
topbar.style.display="none"
}
else
{
topid.innerText="▲"
topbar.style.display=""
}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
</SCRIPT>
<title>【论坛】</title></HEAD>
<BODY scroll=no style="MARGIN: 0px" onLoad="MM_openBrWindow('notice.htm','','scrollbars=yes,width=250,height=300')">
<TABLE border=0 cellPadding=0 cellSpacing=0 height="100%">
<TBODY>
<TR>
<TD align=middle noWrap rowSpan=2 vAlign=center name="menu"><IFRAME
frameBorder=0 name=lft scrolling=no
src="left.asp"
style="HEIGHT: 100%;
VISIBILITY: inherit;
WIDTH:100px;
Z-INDEX: 2"></IFRAME></TD>
<TD background="img/bar.gif" height=1 onclick=changedisplay()
style="CURSOR: hand"></TD>
<TD rowSpan=2 style="WIDTH: 100%">
<IFRAME frameBorder=0 id=frmright name=mm src="home.asp" style="HEIGHT: 100%;
VISIBILITY: inherit;
WIDTH: 100%;
Z-INDEX: 1"></IFRAME>
</TD>
</TR>
<TR>
<TD background="img/bar.gif">
<TABLE border=0 cellPadding=0 cellSpacing=0 height="100%">
<TBODY>
<TR>
<TD onclick=switchSysBar() style="CURSOR: hand" title=关闭/打开左栏><SPAN
class=navPoint id=switchPoint title=关闭/打开左栏><FONT
color=#ff0000>3</FONT></SPAN></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
</BODY></HTML>
</body>
</html>
 
怎么 写的 ,写的什么函数?有代码吗? 贴出来啊
 
接受答案了.
 
后退
顶部