想实现点击一个链接,在两个iframe(比如iframe1,iframe2)显示相关页面,如何? 首先,name不可以用数字!改用字母+数字吧。假定命名分别为:f1、f2<a href="iframe2.htm" target="f2" onmousedown=top.f1.location="iframe1.htm"></a> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <a href="iframe2.htm" target="f2" onmousedown=top.f1.location="iframe1.htm"></a> ~~~~top是什么意思? 对,原因是name要用字母+数字,改成这样可以了<a href="iframe2.htm" target="f2" onmousedown=*.f1.location="iframe1.htm"></a>星号为无论加什么或者不加都可以通过。 <html><head><title>无标题文档</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body bgcolor="#FFFFFF" text="#000000"><table width="82%" border="1" height="146"> <tr> <td bgcolor="#006699"><iframe src="" name="a1" id="new1" width="100" height="200" marginwidth="0" marginheight="0" align="top" scrolling="no" frameborder="0" border="0" frameSpacing="0" noResize="" vspale="0"></iframe></td> <td bgcolor="#009999"><iframe src="" name="a2" id="new2" width="100" height="200" marginwidth="0" marginheight="0" align="top" scrolling="no" frameborder="0" border="0" frameSpacing="0" noResize="" vspale="0"></iframe></td> <td bgcolor="#00CC00"><a href="#" onclick="top.a1.location='/jzpz/xsychoose.asp' ;parent.document.a2.location='/jzpz/xsychoose.asp'">aaa</a></td> </tr></table></body></html> document.all.id.src行不行?比如document.all.1.src='iframe1.htm' 打错了,是比如document.all.new1.src='iframe1.htm' 应该不行,new1是frame对象,不是document的子对象 求教大神 Ext 鼠标悬停在某条数据上时,显示一个层,但是层里的数据是根据鼠标悬停的行的一个值到数据库查询的 在JS中<s:property value =""/>获取不到值 求大神帮助 急~~ javascript权限问题 异步请求后,IE8的一个奇怪的bug 风行IE下的浮动qq客服不能用 js正则表达式限制字符长度问题 JS控制层的显示位置 关于如何只触发当前元素? 请教:控件与组件有什么区别吗? 关于面向对象的请求帮助!希望可以得到提点,谢谢大家了! 用xml的load() 一个关于网页传递参数地简单问题,但是我不会
~~~~
top是什么意思?
<a href="iframe2.htm" target="f2" onmousedown=*.f1.location="iframe1.htm"></a>
星号为无论加什么或者不加都可以通过。
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head><body bgcolor="#FFFFFF" text="#000000">
<table width="82%" border="1" height="146">
<tr>
<td bgcolor="#006699"><iframe src="" name="a1" id="new1" width="100" height="200" marginwidth="0" marginheight="0" align="top" scrolling="no" frameborder="0" border="0" frameSpacing="0" noResize="" vspale="0"></iframe></td>
<td bgcolor="#009999"><iframe src="" name="a2" id="new2" width="100" height="200" marginwidth="0" marginheight="0" align="top" scrolling="no" frameborder="0" border="0" frameSpacing="0" noResize="" vspale="0"></iframe></td>
<td bgcolor="#00CC00"><a href="#" onclick="top.a1.location='/jzpz/xsychoose.asp' ;parent.document.a2.location='/jzpz/xsychoose.asp'">aaa</a></td>
</tr>
</table>
</body>
</html>
比如document.all.1.src='iframe1.htm'
比如document.all.new1.src='iframe1.htm'