注册 登录
编程论坛 JavaScript论坛

谁能帮我看看下面的程序为什么无法在网页中打开文档

davidwn 发布于 2010-12-09 09:08, 480 次点击
<html>
<head>
<script type="text/javascript">
function ObjectLoad()
{
    if ( objectDestination )
    {
        var bodyElement = objectDestination.parentElement;
        
        if ( bodyElement.objectSource )
        {
            bodyElement.innerHTML = "<embed width=100% height=100% fullscreen=yes>";
            bodyElement.firstChild.src = bodyElement.objectSource;
        }
    }
}
</script>
</head>
<body objectSource="C:\Documents and Settings\wangwei\My Documents\zy.doc" onload="ObjectLoad();" leftmargin=100 topmargin=100 scroll=no>
<form id="objectDestination"></form> </body></html>
2 回复
#2
foktime2010-12-09 10:49
这个, embed 能播放doc么?
标签也没闭合
#3
davidwn2010-12-09 11:49
哦 明白了 谢谢
1