先看看我写的
---------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標題文件</title>
</head>
<frameset rows="59,*" frameborder="no" border="0" framespacing="0">
<frame src="head.html" noresize="noresize" frameborder="0" name="topFrame" marginwidth="0" marginheight="0" scrolling="no">
<frame src="left.html" noresize="noresize" frameborder="0" name="topFrame" marginwidth="0" marginheight="0" scrolling="no">
<frameset rows="*" cols="195,*" id="frame">
<frame src="right.html" name="main" marginwidth="0" marginheight="0" frameborder="0" scrolling="yes">
</frameset>
<frame src="UntitledFrame-1" noresize="noresize" frameborder="0" name="bottomFrame" marginwidth="0" marginheight="0" scrolling="no">
<noframes>
<body></body>
</noframes>
</frameset>
</html>
-------------------------------------------
head.html
-------------------------------------------
<a href="#" onClick="switchBar(this)">1111</a>
2222
3333<a href="right1.html" target="main">111</a>
<a class="top_link" href="right2.html" target="main">222</a>
-------------------------------------------
left.html
-------------------------------------------
<body>
<div id="left">sad</div>
</body>
-------------------------------------------
right.html
-------------------------------------------
<body>
<div id="right">sad</div>
</body>===================
我想点击head.html的按钮然后让righ.html页面变化 但是为啥不再本页打开,而另开了一个新页面?我想左边个上边部分不变,只变右边部分,怎么解决啊?
---------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標題文件</title>
</head>
<frameset rows="59,*" frameborder="no" border="0" framespacing="0">
<frame src="head.html" noresize="noresize" frameborder="0" name="topFrame" marginwidth="0" marginheight="0" scrolling="no">
<frame src="left.html" noresize="noresize" frameborder="0" name="topFrame" marginwidth="0" marginheight="0" scrolling="no">
<frameset rows="*" cols="195,*" id="frame">
<frame src="right.html" name="main" marginwidth="0" marginheight="0" frameborder="0" scrolling="yes">
</frameset>
<frame src="UntitledFrame-1" noresize="noresize" frameborder="0" name="bottomFrame" marginwidth="0" marginheight="0" scrolling="no">
<noframes>
<body></body>
</noframes>
</frameset>
</html>
-------------------------------------------
head.html
-------------------------------------------
<a href="#" onClick="switchBar(this)">1111</a>
2222
3333<a href="right1.html" target="main">111</a>
<a class="top_link" href="right2.html" target="main">222</a>
-------------------------------------------
left.html
-------------------------------------------
<body>
<div id="left">sad</div>
</body>
-------------------------------------------
right.html
-------------------------------------------
<body>
<div id="right">sad</div>
</body>===================
我想点击head.html的按钮然后让righ.html页面变化 但是为啥不再本页打开,而另开了一个新页面?我想左边个上边部分不变,只变右边部分,怎么解决啊?
解决方案 »
- 百度分享自定义内容
- 如何加入空格对象
- 谁能解释一下这段代码,谢谢。
- 这么写有什么作用了!.........
- 如何为下拉列表中不同的值加入不同的图片啊
- 找人用javascript完善一个分色文本编辑器, 付费.
- 我在onkeyup事件改变text中的值,怎么能得到触发onkeyup之前文本框的值?
- 最基础的问题,解决就有分~~~
- 请看如下例子,有一个子页面,页面里有一个框架,c和d,现在当c 执行完后(onload='想调用父窗口b的一个函数'),父窗口是一个框架,分别
- 各位老大,有没有只显示年月的月历啊?
- js 判断fckeditor里的内容不超过数据库字段的数据类型为text的最大储存量?
- 关于用JS实现三联动,高手快进来啊 ,急!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標題文件</title>
</head>
<frameset rows="59,*" frameborder="no" border="0" framespacing="0">
<frame src="head.html" noresize="noresize" frameborder="0" name="topFrame" marginwidth="0" marginheight="0" scrolling="no">
<frameset cols="195,*" id="frame">
<frame src="left.html" noresize="noresize" frameborder="0" name="leftFrame" marginwidth="0" marginheight="0" scrolling="no">
<frame src="right.html" name="main" marginwidth="0" marginheight="0" frameborder="0" scrolling="yes">
</frameset>
<noframes>
<body></body>
</noframes>
</frameset>
</html>
没有的话,就拼接个<a>
//把right的name设为 main 然后连接页面的时候<a href="#" tager="main"></a>就OK 了