关于如何用js改变网页内容 我想只用html和js实现,我的网页只有一个iframe和两个按钮,我想实现点一个按钮换一个不同的iframe不同的iframe是因为这两个iframe设置的值不一样,谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以把一个先隐藏起来,点击一个按钮的时候隐藏先前显示的,打开先前隐藏的<div id="test" style="display:none;"><iframeframeBorder=0 id=heads src="framepage.htm" style="HEIGHT: 200px; LEFT: 220px; POSITION: absolute; TOP: 200px; WIDTH: 500px"></iframe></div></div><input type="button" onclick="document.all.bodyframe.style.display='block';" value="显示"></div></div><input type="button" onclick="document.all.bodyframe.style.display='none';" value="隐藏"></div> document.getElementById("iframeId").contentWindow.location ="xx.html";document.getElementById("iframeId").src="yy.html";window.frames["iframeId"].document.body.innerHTML="zzzz";...... <div id="test" style="display:none;"> <iframeframe Border=0 id=heads src="framepage.htm" id="iframe" style="HEIGHT: 200px; LEFT: 220px; POSITION: absolute; TOP: 200px; WIDTH: 500px"> </iframe> </div> </div> <input type="button" onclick="change("iframe1.htm")"value="显示"> <input type="button" onclick="change("iframe2.php")value="变化"> <script>function change(id_htm){ document.getElementById("iframe").src = id_htm;}</script></div> </div> 是不是需要这样的效果 jQuery addClass问题 如何用javascript实现验证码图片的动态切换??? js读取xml报selectNodes为空或不是对象错误 层拖拽效果的一点问题,高分求,大家看看啊!! 高手帮忙看看 <input type=file>的使用问题? 请问一个最简单的问题。 还是排序问题,搜索没找到答案~~~~~~~~ 大哥们,能用php或asp或javascript 实现一幅图像翻转吗????? 有麻烦了?请帮忙-模态窗口的返回问题 2个div出现之间出现空白的问题解决办法 我怎么知道特定的浏览器都支持哪些属性和方法?
<div id="test" style="display:none;">
<iframeframeBorder=0 id=heads src="framepage.htm" style="HEIGHT: 200px; LEFT: 220px; POSITION: absolute; TOP: 200px; WIDTH: 500px">
</iframe>
</div>
</div>
<input type="button" onclick="document.all.bodyframe.style.display='block';" value="显示">
</div>
</div>
<input type="button" onclick="document.all.bodyframe.style.display='none';" value="隐藏">
</div>
document.getElementById("iframeId").contentWindow.location ="xx.html";
document.getElementById("iframeId").src="yy.html";
window.frames["iframeId"].document.body.innerHTML="zzzz";
......
<iframeframe Border=0 id=heads src="framepage.htm" id="iframe" style="HEIGHT: 200px; LEFT: 220px; POSITION: absolute; TOP: 200px; WIDTH: 500px">
</iframe>
</div>
</div>
<input type="button" onclick="change("iframe1.htm")"value="显示">
<input type="button" onclick="change("iframe2.php")value="变化">
<script>
function change(id_htm){
document.getElementById("iframe").src = id_htm;
}
</script>
</div>
</div>
是不是需要这样的效果