用表格更容易控制!
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.navPoint {
FONT-SIZE: 9pt; CURSOR: hand; COLOR: black; FONT-FAMILY: Webdings
}
-->
</style>
<script language="javascript">
function switchSysBar(){
if (switchPoint.innerText==3){
switchPoint.innerText=4
document.all("frmTitle").style.display="none"
}
else{
switchPoint.innerText=3
document.all("frmTitle").style.display=""
}
}
</script>
</head><body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="48%" name="frmTitle">左边</td>
<td width="4%" title=点这里 onclick=switchSysBar()><DIV align=center><SPAN class=navPoint id=switchPoint title=缩放工具箱>3 </SPAN></DIV></td>
<td width="48%">右边</td>
</tr>
</table>
</body>
</html>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.navPoint {
FONT-SIZE: 9pt; CURSOR: hand; COLOR: black; FONT-FAMILY: Webdings
}
-->
</style>
<script language="javascript">
function switchSysBar(){
if (switchPoint.innerText==3){
switchPoint.innerText=4
document.all("frmTitle").style.display="none"
}
else{
switchPoint.innerText=3
document.all("frmTitle").style.display=""
}
}
</script>
</head><body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="48%" name="frmTitle">左边</td>
<td width="4%" title=点这里 onclick=switchSysBar()><DIV align=center><SPAN class=navPoint id=switchPoint title=缩放工具箱>3 </SPAN></DIV></td>
<td width="48%">右边</td>
</tr>
</table>
</body>
</html>
解决方案 »
- 为什么我这段js在本地测试就正常 放在网上js里边的内容就不显示了
- 急急急 请诸位帮下忙
- 怎么获取文本里的全部指定的文字啊?
- jquery megre 方法
- 关于JavaScript的prototype和instanceof
- js编的tabcontrol的问题,每次服务器刷新就回到tabcontrol起始状态
- 下面这两段setTimeout 和setInterval有什么区别? 有没有什么简单的例子一下子说明白的??
- 怎样避免绕过javascript验证?
- 100 分 求: 梅花雪的带 checkbox 功能的的TreeView树控件 下载地址和使用方法?
- js 获取框架信息
- 如何给文本框赋onchange事件?
- 何在dreamweaver里使得写javascript时函数可以自动出现提示啊!
<frame name="left" src="new_page_3.htm">
<frame name="right" src="new_page_4.htm">
</frameset>javascripttop.topFrame.cols = "0%,*"
<frameset cols="*,*">
<frame name="left" src="new_page_3.htm">
<frame name="right" src="new_page_4.htm">
</frameset>是否有办法呢?只能在new_page_4.htm修改。。
top.frames.document.all[4].cols = "0,*";//all[4],视top页对像而定!
</script>