HTML>
<HEAD>
</HEAD>
<BODY>
<table id="tblData1">
<tr><td>gdsssa</td><td>445</td></tr>
<tr><td>gdsssa</td><td>445</td></tr>
</table>
<table id="tblData" width="100%" height="165" border="0" cellpadding="1" cellspacing="1" id="List" dwcopytype="CopyTableRow">
<tr class="tableHead">
<td width="51" height="9" style="TEXT-ALIGN: right">序号</td>
<td width="111">项目名称</td>
<td width="206" style="TEXT-ALIGN: left">机组选择</td>
<td width="216" height="9" style="TEXT-ALIGN: left">功能描述</td>
<td width="184" height="9" style="TEXT-ALIGN: left">备注</td>
</tr>
<tr class="cellCenter">
<td style="TEXT-ALIGN: right" height="5">1</td>
<td ><a href="
www.sohu.com">主汽温度</a></td>
<td style="TEXT-ALIGN: left"> <input type="checkbox" id="checkbox1" name="checkbox1" value="2" checked onclick="runCheckSeclect()">
#5
<input type="checkbox" id="checkbox2" name="checkbox2" value="1" onclick="runCheckSeclect()">
#6 </td>
<td style="TEXT-ALIGN: left" height="4"></td>
<td height="4" style="TEXT-ALIGN: left"></td>
</tr>
<tr class="cellCenter">
<td style="TEXT-ALIGN: right" height="10">13</td>
<td>#2高加端差</td>
<td style="TEXT-ALIGN: left"> <input type="checkbox" id="checkbox12214" name="checkbox12213" value="2" checked onclick="runCheckSeclect()">
#5
<input type="checkbox" id="checkbox22214" name="checkbox22213" value="1" onclick="runCheckSeclect()">
#6 </td>
<td style="TEXT-ALIGN: left" height="10"> </td>
<td height="10" style="TEXT-ALIGN: left"> </td>
</tr>
<tr class="cellCenter">
<td style="TEXT-ALIGN: right" height="10">14</td>
<td>#3高加端差</td>
<td style="TEXT-ALIGN: left"> <input type="checkbox" id="checkbox12215" name="checkbox12214" value="2" checked onclick="runCheckSeclect()">
#5
<input type="checkbox" id="checkbox22215" name="checkbox22214" value="1" onclick="runCheckSeclect()">
#6 </td>
<td style="TEXT-ALIGN: left" height="10"> </td>
<td height="10" style="TEXT-ALIGN: left"> </td>
</tr>
</table>
<input type="button" value="export" onclick="exportExcel(tblData)">
<P> </P>
</BODY>
<script language="javascript">
function exportExcel(atblData)
{
if(typeof(EXPORT_OBJECT)!="object")
{
document.body.insertAdjacentHTML("afterBegin","<OBJECT style='display:none' classid=clsid:0002E510-0000-0000-C000-000000000046 id=EXPORT_OBJECT></Object>");
}
with (EXPORT_OBJECT)
{
DataType = "HTMLData";
HTMLData =atblData.outerHTML;
try{
ActiveSheet.Export("C:\\owcToExcel.xls", 0);
alert('汇出完毕');
}
catch (e){
alert('汇出Excel表失败,请确定已安装Excel2000(或更高版本),并且没打开同名xls文件');
}
}
}
</script>
</HTML>
posted on 2006-04-03 14:32
汪杰 阅读(223)
评论(0) 编辑 收藏 引用 所属分类:
hengxing网站js