Call javascript in IE open Excel

Related Tags:

  <! DOCTYPE html PUBLIC "- / / w3c / / DTD HTML 4.0 Transitional / / EN"> 
<HTML>
<HEAD>
  <META Http-equiv=Content-Type content="text/html; charset=utf-8"> 
  <TITLE> Top30 pin-table </ TITLE> 
  </ HEAD> 
<BODY>
  <input Name="shanghai" type="button" class="but" id="shanghai" onClick="StartExcel('上海')" value="上海店"> 
  <SCRIPT LANGUAGE="Javascript"> 
  Var idTmr = ""; 
  Function StartExcel (strFileName) 
  ( 
  Var oExcel; 
  Var oWorkbook; 
  Var strAllName; 
  OExcel = new ActiveXObject ( "Excel.Application"); 
  / / If (null strFileName = | | strFileName = "") 
  / / (Return; 
  / /) 
  StrAllName = "\ \ \ \ ep-hgh \ \ Top30 pin-table \ \ renewed sell-TOP30 investment table -" strFileName. "Xls"; 
  OExcel.Workbooks.Open (strAllName); 
  / / OExcel.Workbooks.Open ( "file: / / ep-hgh/Top30 pin-table / renewal sell investment-TOP30 table - Shanghai. Xls"); 
  OExcel.DisplayAlerts = false; 
  OExcel.Visible = true; 
  / / OExcel.Quit (); 
  / / OExcel = null; 
  / / Anti-death process EExcel the key!    !    Must!    !    !    Downmoon serious statement 
  IdTmr = window.setInterval ( "Cleanup ();", 1000); 
  ) 

  Function Cleanup () ( 
  Window.clearInterval (idTmr); 
  CollectGarbage (); 
  ) 
  </ SCRIPT> 
  </ BODY> 
  </ HTML> 

Related articles:

Fireworks MX 2004 Detailed Explanation rich image export capabilities
  In Fireworks to create and optimize the graphics, users can be used for the graphics output format and the Web for other procedures (such as Freehand) use of vector graphics format.    Fireworks MX 2004 because of its network-oriented characteristics can be derived not only in the ...
SEO: ajax search engines killer?
  A few days ago to google with the open source projects GWT (Google Web Toolkit).    GWT is a very useful and very interesting things.    It is a concept: the use of pure jscript to create your website.    GWT example of a site Kitchen Sink, very complex pages, H...
AjaxControlToolkit Microsoft to use the tools ajax.net 21 CalendarExtender Guide (date) controls the use of (land-original)
  <% @ Page Language = "C #" AutoEventWireup = "true" CodeFile = "Default.aspx.cs" Inherits = "_Default"%>    <DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.1 / / EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"...
Flash8 produce a cool Flash Web Site
  Making use of a Flash Flash web site, quite simple, and I hope everyone was able to master.    Look at the results:    Click here to download the source files (extract Password: www.webjx.com)    1, create Flash documents, modify a document attributes.  ...
How fast the construction of a successful Chinese web2.0 site
  Web2.0 scenery in today's simply no one on the Internet with its competitive, as web2.0 web site in English and the rapid development of Chinese web2.0 site also will be increased.    Such sites is the largest potential benefits to be easily taken risk investment, investment, a...