62,243
社区成员




<script language="javascript">
<!--
var HKEY_Path = "HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\PageSetup\\"; // 定义注册表位置
// name的值可为header(页眉),footer(页脚),margin_bottom(下边距margin_left(左边距),margin_right(右边距),margin_top(上边距)。
function PageSetup(name,value) {
try {
var Wsh = new ActiveXObject("WScript.Shell");
Wsh.RegWrite(HKEY_Path+name,value); // 修改注册表值
}catch(e) {
//alert(e.name+" "+e.message);
//alert('需要运行ActiveX对象后,才能进行打印设置。');
}
}
function setit() {
PageSetup("footer","");
PageSetup("header","");
window.print();
}
//-->
</script>