<script language=javascript>
function move1()
{
parent.ep023.cols="192,9,*";
}
function move2()
{
parent.ep023.cols="0,9,*";
}
</script>
</script>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="sys_images/model_1/index.css" type="text/css"><script language=JavaScript>
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;}
function startclock () {
stopclock();
showtime();}
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" +((hours >= 12) ? "下午 " : "上午 " )
timeValue += ((hours >12) ? hours -12 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
document.clock.thetime.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;}
</SCRIPT></head><body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="startclock()">
<form action="" method="post" name="clock" id="clock">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="bottom"><div align="right"><img src="sys_images/model_1/main_topren.gif" align="absmiddle">在线人数</div></td>
<td width="30" valign="bottom">
<iframe src="/newschool/icq/onlineuser.php" width="30" height="63" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></td>
<td width="412" height="63" valign="bottom" background="sys_images/model_1/main.gif"><div align="left"><img src="sys_images/model_1/main_time.gif" align="absmiddle">
<input name="thetime" type="text" class="huaxian" size="10" maxlength="10">
<a href="base.php" target="text"><img src="sys_images/model_1/fanhui.gif" border="0" align="absmiddle">返回首页</a> <a href="main_new.php?action=logout" target="_parent" onClick="return confirm('确定要退出吗?')"><img src="sys_images/model_1/main_exit.gif" border="0" align="absmiddle">退出系统</a></div></td>
</tr>
</table>
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0" background="sys_images/model_1/main_basetop.gif">
<tr>
<td height="25"> </td>
<td width="300" height="25"> <div align="left"> <a href="#" onClick="move1()"><img src="sys_images/model_1/left_show.gif" border="0"></a> <a href="#" onClick="move2()"><img src="sys_images/model_1/left_hide.gif" border="0"></a></div></td>
</tr>
</table>
</form>
</body>
</html>
function move1()
{
parent.ep023.cols="192,9,*";
}
function move2()
{
parent.ep023.cols="0,9,*";
}
</script>
</script>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="sys_images/model_1/index.css" type="text/css"><script language=JavaScript>
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;}
function startclock () {
stopclock();
showtime();}
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" +((hours >= 12) ? "下午 " : "上午 " )
timeValue += ((hours >12) ? hours -12 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
document.clock.thetime.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;}
</SCRIPT></head><body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="startclock()">
<form action="" method="post" name="clock" id="clock">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="bottom"><div align="right"><img src="sys_images/model_1/main_topren.gif" align="absmiddle">在线人数</div></td>
<td width="30" valign="bottom">
<iframe src="/newschool/icq/onlineuser.php" width="30" height="63" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></td>
<td width="412" height="63" valign="bottom" background="sys_images/model_1/main.gif"><div align="left"><img src="sys_images/model_1/main_time.gif" align="absmiddle">
<input name="thetime" type="text" class="huaxian" size="10" maxlength="10">
<a href="base.php" target="text"><img src="sys_images/model_1/fanhui.gif" border="0" align="absmiddle">返回首页</a> <a href="main_new.php?action=logout" target="_parent" onClick="return confirm('确定要退出吗?')"><img src="sys_images/model_1/main_exit.gif" border="0" align="absmiddle">退出系统</a></div></td>
</tr>
</table>
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0" background="sys_images/model_1/main_basetop.gif">
<tr>
<td height="25"> </td>
<td width="300" height="25"> <div align="left"> <a href="#" onClick="move1()"><img src="sys_images/model_1/left_show.gif" border="0"></a> <a href="#" onClick="move2()"><img src="sys_images/model_1/left_hide.gif" border="0"></a></div></td>
</tr>
</table>
</form>
</body>
</html>
<frameset cols="*,*" frameborder="yes" border="1" framespacing="0" id="main">
<frame src="c.htm" name="leftFrame" >
<frame src="b.htm" name="mainFrame">
</frameset>在一个事件中:
top.main.cols='0,*'
<HTML>
<HEAD>
<TITLE>xxxxxxxxxxxxxx</TITLE>
<STYLE>
.navPoint {
COLOR: blue; CURSOR: hand; FONT-FAMILY: Webdings; FONT-SIZE: 9pt
}</STYLE>
<SCRIPT>
function switchBar(){
if (switchPoint.innerText==7){
switchPoint.innerText=8
document.all("frmTitle").style.display="none"
}
else{
switchPoint.innerText=7
document.all("frmTitle").style.display=""
}
}
</SCRIPT>
<BODY scroll=no style="MARGIN: 0px">
<TABLE border=0 cellPadding=0 cellSpacing=0 height="100%" width="100%">
<TBODY>
<TR>
<TD align=middle id=frmTitle noWrap vAlign=center name="frmTitle" width='6%'>
<IFRAME frameBorder=0 id=BoardTitle name=BoardMenu scrolling=yes src="bbb.php" style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 148px; Z-INDEX: 2"></IFRAME>
<TD bgColor=#d2e8e6 onclick=switchBar() style="WIDTH: 10pt">
<SPAN class=navPoint id=switchPoint title=关闭/打开菜单>7</SPAN>
</TD>
<TD style="WIDTH: 100%">
<IFRAME frameBorder=0 id=frmright name=forum src="xxx.php" style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 100%; Z-INDEX: 1"></IFRAME>
</TD>
</TR>
</TBODY>
</TABLE>
</BODY>
</HTML>
<frame src="c.htm" name="leftFrame" >
<frame src="b.htm" name="mainFrame">
</frameset>c.htm onclick事件中,这样写
parent.frames[0].style.display="none" //隐藏
parent.frames[0].style.display="block" //显示