我前几天有一个问题,没有说清楚,我现在重新说一次,大家帮帮忙看看应该怎样写
我的问题是,现在有一张html页面,分成left.htm,base.htm,又left_show.gif的图片,点击他就可以把loading.htm缩回到左面,然后在base.htm上有一张left_hide.gif
点击就可以使left.htm恢复原位,javascript应该怎样写呀,在线等待!!!!!!
---------------------------------------------------------------
不要想的这么复杂,就通过top.帧.obj访问就行
---------------------------------------------------------------
1<frameset cols="200,*" id="m">
2<frame src="left.htm"/>
3<frame src="r.htm"/>
4</frameset>
in left.htm
onclick="parent.document.all.m.cols='0,*'"
---------------------------------------------------------------
1<frame ....="" <a="" \---------------------------------------------------------------="" href="#" name="left" onclick="SwitchMenu();return false;" parent.frames[0].style.display="block" target="mainFrame" 你左边框架的name="" 显示="" 隐藏:=""/>
菜单开关
1<script language="JavaScript">
2<!--
3function SwitchMenu(){
4//alert(window.top.document.all.subframeset.cols);
5if (window.top.document.all.subframeset.cols=="0,*"){
6window.top.document.all.subframeset.cols="161,*"}
7else{
8window.top.document.all.subframeset.cols="0,*"
9}
10}
11//-->
12</script>
---------------------------------------------------------------
http://www30.brinkster.com/bencalie/test/frame.rar
---------------------------------------------------------------
1<html><head><title>默认页</title>
2<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><link href="style.css" rel="stylesheet" type="text/css"/>
3<script>
4function switchSysBar(){
5if (switchPoint.innerText==3)
6{
7switchPoint.innerText=4
8document.all("frmTitle").style.display="none"
9}
10else
11{
12switchPoint.innerText=3
13document.all("frmTitle").style.display=""
14}
15}
16</script>
17<body bgcolor="#ffffff" leftmargin="0" scroll="no" topmargin="0">
18<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
19<tbody>
20<tr>
21<td align="middle" id="frmTitle" nowrap="" valign="center"><iframe frameborder="0" name="yuzi" src="left.htm" style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 120px; Z-INDEX: 2"></iframe>
22<td bgcolor="#000000">
23<table border="0" cellpadding="0" cellspacing="0" height="100%">
24<tbody>
25<tr>
26<td onclick="switchSysBar()" style="HEIGHT: 100%"><font style="COLOR: white; CURSOR: hand; FONT-FAMILY: Webdings; FONT-SIZE: 12px"><span id="switchPoint">3</span> </font></td></tr></tbody></table>
27</td>
28<td class="black" style="WIDTH: 100%"><iframe frameborder="0" id="main" name="main" scrolling="yes" src="main.htm" style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 100%; Z-INDEX: 1"></iframe></td></td></tr></tbody></table></body></head></html>