发新话题
打印

[网站设计] 如何一个链接刷新两个IFRAME?

本主题由 木木 于 2008-4-23 07:54 分类

如何一个链接刷新两个IFRAME?

本文网址:http://bbs.bitscn.com/166502 复制

我想这么设计页面:
<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)

TOP

发新话题
版块跳转 
沪ICP备08026629号 / 管理员木木 / QQ58284700 / MSNjacro|at|bitscn.net / TEL13641763379 /