用JavaScript 调用 dsoframer 的 保存 打开 功能

<script type="text/javascript" language="javascript">

//打开文档
 function OpenDoc(){
   document.all.oframe.showdialog(1);
 }
 //创建文档
 function NewDoc(){
  document.all.oframe.showdialog(0);
 }
 //保存文档到本地
 function SaveCopyDoc(){
  document.all.oframe.showdialog(3);
 }
 //关闭文档
 function CloseDoc() {
  document.all.oframe.Close();
 }

</script >

 

<table width="100%" height="95%" cellpadding="0" cellspacing="0" border="0">
<tr>
 <td valign="top" width="100%">
  <table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
    <tr>
   
     <td valign="top" >
       <object classid="clsid:00460182-9E5E-11d5-B7C8-B8269041DD57" codeBase="dsoframer.ocx#version=2,2,1,2"
     id="oframe" width="100%" height="100%">
         <param name="BorderStyle" value="1">
         <param name="TitlebarColor" value="52479">
   <param name="Titlebar" value="0">
         <param name="TitlebarTextColor" value="0"> 
         <param name="Menubar" value="1">
          <param name="Toolbars" value="1">
       </object>
     </td>
    </tr>
  </table>
 </td>
</tr>
</table>

你可能感兴趣的:(JavaScript)