frame 里的 iframe 困扰 parent.leftFrame.document.getElementById("rateword");改整个src不知道如何做。但是上面的代码是在rightFrame里控制左边的leftFrame里的东西,供参考吧。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不过貌似好像可以用target来达到? //left.html<script language='javascript'> function test() { alert(window.parent.frames['main_frame'].document.getElementById('iframe1').src); }</script><a onclick="test()">click here </a>//right.html<iframe id='iframe1' name="iframe1" height="100%" width="100%" src="http://localhost/index1.php" border="0" frameborder="0" scrolling="no"> 浏览器不支持 </iframe> //left.html<script language='javascript'> function test() { window.parent.frames['main_frame'].document.getElementById('iframe1').src = 'tb2.html'; }</script><a onclick="test()">click here </a>//right.html<iframe id='iframe1' name="iframe1" height="100%" width="100%" src="tab1.html" border="0" frameborder="0" scrolling="no"> 浏览器不支持 </iframe> wordpress函数single_cat_title()分类显示问题 简单的位运算符 求高手 我怎么去掉网页后面的 网站标题 我安装了的PHP5.2.6 怎么有好多函数没有啊 正则表达式 (.*)为什么回匹配到一个空null串? 远程mysql连接问题 事务处理的原则。以及速度问题。 急~关于url隐藏的问题! PHP中的session难题,回答给高分(100分) tp问题 框架中SRC的值的内容在FIREFOX中不能输出? 下拉框如何固定行数
function test()
{
alert(window.parent.frames['main_frame'].document.getElementById('iframe1').src);
}
</script>
<a onclick="test()">click here </a>
//right.html<iframe id='iframe1' name="iframe1" height="100%" width="100%" src="http://localhost/index1.php" border="0" frameborder="0" scrolling="no"> 浏览器不支持 </iframe>
function test()
{
window.parent.frames['main_frame'].document.getElementById('iframe1').src = 'tb2.html';
}
</script>
<a onclick="test()">click here </a>
//right.html<iframe id='iframe1' name="iframe1" height="100%" width="100%" src="tab1.html" border="0" frameborder="0" scrolling="no"> 浏览器不支持 </iframe>