reinforce
注册会员

一般会员
UID 29780
精华
0
积分 137
帖子 128
金钱 137 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2004-7-2
状态 离线
|
[推荐阅读] 问个很恼火的事情(mysql)
示例
原来的:<OBJECT id=Spreadsheet1 codeBase=file:\Bobsoftwareoffice2000msowc.cab height=250 width="100%" classid=clsid:0002E510-0000-0000-C000-000000000046><PARAM NAME="HTMLURL" VALUE=""><PARAM NAME="HTMLData" VALUE="<html xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"> <head> <style type="text/css"> <!--tr 	{mso-height-source:auto;} td 	{white-space:nowrap;} .wcC89060B 	{white-space:nowrap; 	font-family:宋体; 	mso-number-format:General; 	font-size:auto; 	font-weight:auto; 	font-style:auto; 	text-decoration:auto; 	mso-background-source:auto; 	mso-pattern:auto; 	mso-color-source:auto; 	text-align:general; 	vertical-align:bottom; 	border-top:none; 	border-left:none; 	border-right:none; 	border-bottom:none; 	mso-protection:locked;} --> </style> </head> <body> <!--[if gte mso 9]><xml> <x:ExcelWorkbook> <x:ExcelWorksheets> <x:ExcelWorksheet> <x:OWCVersion>9.0.0.3821</x:OWCVersion> <x:Label Style='border-top:solid .5pt silver;border-left:solid .5pt silver; border-right:solid .5pt silver;border-bottom:solid .5pt silver'> <x:Caption>Microsoft Office Spreadsheet</x:Caption> </x:Label> <x:Name>Sheet1</x:Name> <x:WorksheetOptions> <x:Selected/> <x:Height>6615</x:Height> <x:Width>16457</x:Width> <x:TopRowVisible>0</x:TopRowVisible> <x:LeftColumnVisible>0</x:LeftColumnVisible> <x:ProtectContents>False</x:ProtectContents> <x:DefaultRowHeight>210</x:DefaultRowHeight> <x:StandardWidth>2389</x:StandardWidth> </x:WorksheetOptions> </x:ExcelWorksheet> </x:ExcelWorksheets> <x:MaxHeight>80%</x:MaxHeight> <x:MaxWidth>80%</x:MaxWidth> </x:ExcelWorkbook> </xml><![endif]--> <table class=wcC89060B x:str> <col width="56"> <col width="56"> <col width="56"> <col width="56"> <col width="56"> <tr style='mso-xlrowspan:4'> </tr> <tr height="14"> <td></td> <td></td> <td></td> <td></td> <td x:num="555555"></td> </tr> </table> </body> </html> "><PARAM NAME="DataType" VALUE="HTMLDATA"><PARAM NAME="AutoFit" VALUE="0"><PARAM NAME="DisplayColHeaders" VALUE="-1"><PARAM NAME="DisplayGridlines" VALUE="-1"><PARAM NAME="DisplayHorizontalScrollBar" VALUE="-1"><PARAM NAME="DisplayRowHeaders" VALUE="-1"><PARAM NAME="DisplayTitleBar" VALUE="-1"><PARAM NAME="DisplayToolbar" VALUE="-1"><PARAM NAME="DisplayVerticalScrollBar" VALUE="-1"><PARAM NAME="EnableAutoCalculate" VALUE="-1"><PARAM NAME="EnableEvents" VALUE="-1"><PARAM NAME="MoveAfterReturn" VALUE="-1"><PARAM NAME="MoveAfterReturnDirection" VALUE="0"><PARAM NAME="RightToLeft" VALUE="0"><PARAM NAME="ViewableRange" VALUE="1:65536"></OBJECT><form enctype="multipart/form-data">
<textarea name="T_content" rows="6" id="T_content" style="display :none" >
<OBJECT id=Spreadsheet1 codeBase=file:\Bobsoftwareoffice2000msowc.cab height=250 width="100%" classid=clsid:0002E510-0000-0000-C000-000000000046><PARAM NAME="HTMLURL" VALUE=""><PARAM NAME="HTMLData" VALUE="<html xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"> <head> <style type="text/css"> <!--tr 	{mso-height-source:auto;} td 	{white-space:nowrap;} .wcC89060B 	{white-space:nowrap; 	font-family:宋体; 	mso-number-format:General; 	font-size:auto; 	font-weight:auto; 	font-style:auto; 	text-decoration:auto; 	mso-background-source:auto; 	mso-pattern:auto; 	mso-color-source:auto; 	text-align:general; 	vertical-align:bottom; 	border-top:none; 	border-left:none; 	border-right:none; 	border-bottom:none; 	mso-protection:locked;} --> </style> </head> <body> <!--[if gte mso 9]><xml> <x:ExcelWorkbook> <x:ExcelWorksheets> <x:ExcelWorksheet> <x:OWCVersion>9.0.0.3821</x:OWCVersion> <x:Label Style='border-top:solid .5pt silver;border-left:solid .5pt silver; border-right:solid .5pt silver;border-bottom:solid .5pt silver'> <x:Caption>Microsoft Office Spreadsheet</x:Caption> </x:Label> <x:Name>Sheet1</x:Name> <x:WorksheetOptions> <x:Selected/> <x:Height>6615</x:Height> <x:Width>16457</x:Width> <x:TopRowVisible>0</x:TopRowVisible> <x:LeftColumnVisible>0</x:LeftColumnVisible> <x:ProtectContents>False</x:ProtectContents> <x:DefaultRowHeight>210</x:DefaultRowHeight> <x:StandardWidth>2389</x:StandardWidth> </x:WorksheetOptions> </x:ExcelWorksheet> </x:ExcelWorksheets> <x:MaxHeight>80%</x:MaxHeight> <x:MaxWidth>80%</x:MaxWidth> </x:ExcelWorkbook> </xml><![endif]--> <table class=wcC89060B x:str> <col width="56"> <col width="56"> <col width="56"> <col width="56"> <col width="56"> <tr style='mso-xlrowspan:4'> </tr> <tr height="14"> <td></td> <td></td> <td></td> <td></td> <td x:num="555555"></td> </tr> </table> </body> </html> "><PARAM NAME="DataType" VALUE="HTMLDATA"><PARAM NAME="AutoFit" VALUE="0"><PARAM NAME="DisplayColHeaders" VALUE="-1"><PARAM NAME="DisplayGridlines" VALUE="-1"><PARAM NAME="DisplayHorizontalScrollBar" VALUE="-1"><PARAM NAME="DisplayRowHeaders" VALUE="-1"><PARAM NAME="DisplayTitleBar" VALUE="-1"><PARAM NAME="DisplayToolbar" VALUE="-1"><PARAM NAME="DisplayVerticalScrollBar" VALUE="-1"><PARAM NAME="EnableAutoCalculate" VALUE="-1"><PARAM NAME="EnableEvents" VALUE="-1"><PARAM NAME="MoveAfterReturn" VALUE="-1"><PARAM NAME="MoveAfterReturnDirection" VALUE="0"><PARAM NAME="RightToLeft" VALUE="0"><PARAM NAME="ViewableRange" VALUE="1:65536"></OBJECT>
</textarea></form>
用getElementById取过来后
<script>
//alert(document.getElementById('T_content').value);
document.write(document.getElementById('T_content').value);
</script> [ 本帖最后由 reinforce 于 2006-9-15 12:51 PM 编辑 ]
|
|