服务器端生成
<%
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>
以上方法说明了一个思路,没有经过验证,请自行验证。
推荐阅读
漂亮的仿flash菜单,来自蓝色经典
<style>/* 先把这个 xmenu 的样式放到css里 */.xmenu td{font-size:12px;font-family:verdana,arial;font-weight:bolder;color:#ffffff;border:1px solid #336699;background:#336699;filter:blendtrans(duration=>>>详细阅读
本文标题:动态加载iframe
地址:http://www.17bianji.com/kaifa2/JS/31762.html
1/2 1