当前位置: 首页 > 图文教程 > 网络编程 > Javascript > 动态加载iframe

Javascript
脚本收藏iframe
自适应图片大小的弹出窗口
Prototype1.4手册
3张图片循环组和(很有动感)
图片加载进度实时显示
收藏一个代码
点击变化图象 不错
去除链接虚线全面分析总结
如何用JS取得网址中的文件名
新页面打开实际尺寸的图片
js的event详解。
js输入中文效果
图片完美缩放
图片自动更新(说明)
Ajax Blog 用到的几个函数
js几个不错的函数 $$()
菜单效果
yahoo 页面的标签效果
Ucren Virtual Desktop V2.0
一段非常简单的让图片自动切换js代码

Javascript 中的 动态加载iframe


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-12   浏览: 270 ::
收藏到网摘: n/a

服务器端生成
<%
if ..... then
response.write "<iframe name=frame1 src=xxx.html width=0 height=0>"
end if
if ..... then
response.write "<iframe name=frame2 src=xxx.html width=0 height=0>"
end if
%>
客户端生成
<div id=div1></div>
<script language=vbscript>
if .... then str="<iframe name=frame1 src=xxx.html width=0 height=0>"
end if
if ... then
str=str&"<iframe name=frame2 src=xxx.html width=0 height=0>"
end if
生成IFRMAE
document.all("div1").innerhtml=str
给IFRAME里面的表单控件赋值。
document.all("frame1").document.all("xxx").value=xxx
提交时
document.all("frame1").form1.submit()
document.all("frame2").form1.submit()
</script>
以上方法说明了一个思路,没有经过验证,请自行验证。