<HTML>
<style>@media print {.btn{display: none;}}</style>
<script language="JavaScript">
var hkey_root,hkey_path,hkey_key
hkey_root="HKEY_CURRENT_USER"
hkey_path="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\"
function do_print()
{
try{
var RegWsh = new ActiveXObject("WScript.Shell")
hkey_key="header"
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")
hkey_key="footer"
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")
}catch(e){}
window.print();
}
</script>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<style>@media print {.btn{display: none;}}</style>
<script language="JavaScript">
var hkey_root,hkey_path,hkey_key
hkey_root="HKEY_CURRENT_USER"
hkey_path="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\"
function do_print()
{
try{
var RegWsh = new ActiveXObject("WScript.Shell")
hkey_key="header"
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")
hkey_key="footer"
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")
}catch(e){}
window.print();
}
</script>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
解决方案 »
- 用XDocle生成struts-config.xml配置文件,因为工程用到Action是继承DispatchAction,生成配置文件生成不了注释文件内容
- 关于window.print打印功能
- 新手JSP做一个BBS,请问一下怎么拿到当天的发帖量?谢谢
- 数据中心抓取导入难题 有经验之士赐教!
- 探讨论坛附件(视频、图片、PPT等文件)的上传与下载速度限制、对服务器的安全威胁和措施
- java.lang.ClassNotFoundException
- Struts2的乱码问题
- 如何判读访问网站的是移动设备还是计算机,并自动转向???
- 有关TCP/IP筛选问题
- cvc-complex-type.3.2.2: Attribute 'propagetion' is not allowed to appear in elem
- 初步接触JSP,百分求JSP好书!
- 难以解决的java异常!
^_^_^_^_^_^_^_^_^_^^_^_^_^_^_^_^_^_^_^_^_^_^_^恭喜发财
<input type="button" value="打印页面" class= btn onClick="do_print()">
</center>
</BODY>
</HTML>