<!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销控表</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(strfilename=null || strfilename="")
/{return;
/}
strallname="\\\\ep-hgh\\top30销控表\\top30招商续约销控表-"+strfilename+".xls";
oexcel.workbooks.open(strallname);
/oexcel.workbooks.open("file:/ep-hgh/top30销控表/top30招商续约销控表-上海.xls");
oexcel.displayalerts = false;
oexcel.visible = true;
/oexcel.quit();
/oexcel = null;
/防eexcel死进程的关键!!必须!!!downmoon严重声明
idtmr = window.setinterval("cleanup();",1000);
}
function cleanup() {
window.clearinterval(idtmr);
collectgarbage();
}
</script>
</body>
</html>