<iframe name="fraRead" frameborder="0" height="300" width="500" scrolling="auto" src="12.doc"></iframe>这个代码在IE5.5里面是正常显示的还可以编辑
比花钱买的代码好多了可是用IE6 IE8
就提示下载这个问题是怎么回事呀?
比花钱买的代码好多了可是用IE6 IE8
就提示下载这个问题是怎么回事呀?
调试欢乐多
<iframe name="fraRead" frameborder="0" height="300" width="500" scrolling="auto" onload="test('12.doc')"></iframe>js:
<script type="text/javascript">
function test(fileName) {
openDocObj = new ActiveXObject("SharePoint.OpenDocuments.2"); // 为了兼容Office XP,可以创建“SharePoint.OpenDocuments.1”
openDocObj.ViewDocument("http://你的绝对地址"+fileName);//相对地址不行
}
</script>