要在网页中加载另一张网页,甚至多张网页,也是可以实现的,而且方法多种多样!下面介绍其中3种(喔,看不清?那么把装入的网页移开嘛):
·IFrame引入法: <IFRAME
NAME="content_frame" width=100% height=30 marginwidth=0
marginheight=0 SRC="import.htm" ></IFRAME>
·<object>方式: <object
style="border:0px" type="text/x-scriptlet" data="import.htm"
width=100% height=30></object>
·DW行为的download方式: <span
id=showImport></span>
<IE:Download ID="oDownload" STYLE="behavior:url(#default#download)"
/>
<script>
function onDownloadDone(downDate){
showImport.innerHTML=downDate
}
oDownload.startDownload('import.htm',onDownloadDone)
</script> |
还不把代码copy回去试试?
当然,要实现本页的效果,还得结合“层”,CSS格式化的表格应用哦! |
|