急 IFRAME应用需求 不知道能不能实现 yes,<a href='javascript:;' onclick='abc.location.href="http://www.baidu.com";cde.location.href="http://www.baidu.com"'>test</a><iframe name='abc'></iframe><iframe name='cde'></iframe> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 试试function show(url){str="<iframe name='" +url+ "'></iframe>" document.getElementbyId("aaa").innerhtml=str;);}<a href="http://www.baidu.com" onclick='show(this.href)'>test </a> <div id="äaa"></id> 这是如何在子页面调用子页面src的例子,你参考一下吧.main.html<frameset rows="92,*" cols="*" framespacing="0" frameborder="no" border="0"> <frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" /> <frameset id="frame_body" border=0 frameSpacing=0 cols="186,*"> <frame src="./left.html" id="menu_frame" name="menu_frame" frameBorder=0 scrolling="Auto"/> <frame src="./right.html" id="main_frame" name="main_frame" frameBorder=0 scrolling="Auto"/> </frameset> </frameset> 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> 〈iframe name="import_frame" width=100% height=80 中间插入原来程序下半部分的代码 frameborder=auto〉 〈/iframe〉为什么我下半部分的代码没有现在在IFRAME窗体中 而是显示在了他的下面??? ifream可以实现,但是,用Ajax的话效率更高一点。 一个简单的上传问题但是不知道为什么上传不了,我是新手麻烦大家帮我看一下哪里出错了 php解析xml字符串 php如何打开远程目录 XHProf 分析结果 负数 表示什么意思 PHP和ASP.net到底是哪種思想哪種語言哪種更好更先進! 简单问题,求一条sql,谢谢 问一个关于ftp_get()的简单问题。 PHP 中session的用法 如何调用mysql的封装类 smarty生成的静态页和thinkPHP生成的静态页的区别 是不是Apache配置的问题! 求回复成串的思路(应该有点难度了,高手可以进来看看)
function show(url){str="<iframe name='" +url+ "'></iframe>"
document.getElementbyId("aaa").innerhtml=str;
);
}
<a href="http://www.baidu.com" onclick='show(this.href)'>test </a> <div id="äaa"></id>
main.html<frameset rows="92,*" cols="*" framespacing="0" frameborder="no" border="0">
<frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" />
<frameset id="frame_body" border=0 frameSpacing=0 cols="186,*">
<frame src="./left.html" id="menu_frame" name="menu_frame" frameBorder=0 scrolling="Auto"/>
<frame src="./right.html" id="main_frame" name="main_frame" frameBorder=0 scrolling="Auto"/>
</frameset>
</frameset> 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>
height=80 中间插入原来程序下半部分的代码 frameborder=auto〉
〈/iframe〉为什么我下半部分的代码没有现在在IFRAME窗体中 而是显示在了他的下面???
但是,用Ajax的话效率更高一点。