如何一个链接刷新两个IFRAME?
我想这么设计页面:<table width="800" height="600" border="1">
<tr>
<td width="150" rowspan="2"><a href="cc.htm" target=1>链接</a></td>
<td height="300" valign="top"> <iframe src="bb.htm" width="645" height="300" frameborder="0" name=1></iframe>
</td>
</tr>
<tr>
<td valign="top"><iframe src="bb.htm" width="645" height="300" frameborder="0" name=1></iframe></td>
</tr>
</table>
这么做只能刷新第一个IFRAME。
我在网上看见好像可以这么做:
<a href=# onclick=two()>刷新两个桢</a>
<script language=javascript>
function two(){
window.iframe1.location=index1.htm
window.iframe2.location=index2.htm
}
</script>
但是我比较菜,不知道怎么加。
哪位指教下?还是有什么别的办法可以实现?(第一个IFRAME换成图片也行,就是更新一个图片和一个IFRAME)
页:
[1]