動態(tài)加載iframe
更新時間:2006年06月16日 00:00:00 作者:
服務器端生成
<%
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>
以上方法說明了一個思路,沒有經過驗證,請自行驗證。

