这个怎样解决:页面左面有一个树形菜单,可以隐藏,隐藏后右面内容占据整个页面,把banner条都隐藏了,怎么

这个怎样解决:页面左面有一个树形菜单,可以隐藏,隐藏后右面内容占据整个页面,把banner条都隐藏了,怎么解决呢?

 1<script language="javascript">   
 2function move1()   
 3{   
 4parent.ep023.cols="192,9,*";   
 5}   
 6function move2()   
 7{   
 8parent.ep023.cols="0,9,*";   
 9}   
10</script>
 1<html>
 2<head>
 3<title>Untitled Document</title>
 4<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
 5<link href="sys_images/model_1/index.css" rel="stylesheet" type="text/css"/>
 6<script language="JavaScript">   
 7var timerID = null;   
 8var timerRunning = false;   
 9function stopclock (){   
10if(timerRunning)   
11clearTimeout(timerID);   
12timerRunning = false;}   
13function startclock () {   
14stopclock();   
15showtime();}   
16function showtime () {   
17var now = new Date();   
18var hours = now.getHours();   
19var minutes = now.getMinutes();   
20var seconds = now.getSeconds()   
21var timeValue = "" +((hours >= 12) ? "下午 " : "上午 " )   
22timeValue += ((hours >12) ? hours -12 :hours)   
23timeValue += ((minutes < 10) ? ":0" : ":") + minutes   
24timeValue += ((seconds < 10) ? ":0" : ":") + seconds   
25document.clock.thetime.value = timeValue;   
26timerID = setTimeout("showtime()",1000);   
27timerRunning = true;}   
28</script>
29</head>
30<body bgcolor="#FFFFFF" leftmargin="0" marginheight="0" marginwidth="0" onload="startclock()" text="#000000" topmargin="0">
31<form action="" id="clock" method="post" name="clock">
32<table border="0" cellpadding="0" cellspacing="0" width="100%">
33<tr>
34<td valign="bottom"><div align="right"><img align="absmiddle" src="sys_images/model_1/main_topren.gif"/>在线人数</div></td>
35<td valign="bottom" width="30">
36<iframe border="0" frameborder="no" height="63" marginheight="0" marginwidth="0" scrolling="no" src="/newschool/icq/onlineuser.php" width="30"></iframe></td>
37<td background="sys_images/model_1/main.gif" height="63" valign="bottom" width="412"><div align="left"><img align="absmiddle" src="sys_images/model_1/main_time.gif"/>
38<input class="huaxian" maxlength="10" name="thetime" size="10" type="text"/>
39<a href="base.php" target="text"><img align="absmiddle" border="0" src="sys_images/model_1/fanhui.gif"/>返回首页</a> <a href="main_new.php?action=logout" onclick="return confirm('确定要退出吗?')" target="_parent"><img align="absmiddle" border="0" src="sys_images/model_1/main_exit.gif"/>退出系统</a></div></td>
40</tr>
41</table>
42<table background="sys_images/model_1/main_basetop.gif" border="0" cellpadding="0" cellspacing="0" height="25" width="100%">
43<tr>
44<td height="25"> </td>
45<td height="25" width="300"> <div align="left"> <a href="#" onclick="move1()"><img border="0" src="sys_images/model_1/left_show.gif"/></a> <a href="#" onclick="move2()"><img border="0" src="sys_images/model_1/left_hide.gif"/></a></div></td>
46</tr>
47</table>
48</form>
49</body>
50</html>

---------------------------------------------------------------

1<frameset border="1" cols="200,*" frameborder="yes" framespacing="0" id="main">
2<frame name="leftFrame" src="left.htm"/>
3<frame name="mainFrame" src="main.htm"/>
4</frameset>

script 脚本中
top.main.cols='0,'
top.main.cols='200,
'

Published At
Categories with Web编程
Tagged with
comments powered by Disqus