设置网页打印的页眉页脚
2006-06-28 09:59
495 查看
<script language="JavaScript">
var hkey_root,hkey_path,hkey_key
hkey_root="HKEY_CURRENT_USER"
hkey_path="//Software//Microsoft//Internet Explorer//PageSetup//"
//设置网页打印的页眉页脚为空
function pagesetup_null()
{
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,"")
}
//设置网页打印的页眉页脚为默认值
function pagesetup_default()
{
try{
var RegWsh = new ActiveXObject("WScript.Shell")
hkey_key="header"
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"&w&b页码,&p/&P")
hkey_key="footer"
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"&u&b&d")
}catch(e){}
}
</script>
var hkey_root,hkey_path,hkey_key
hkey_root="HKEY_CURRENT_USER"
hkey_path="//Software//Microsoft//Internet Explorer//PageSetup//"
//设置网页打印的页眉页脚为空
function pagesetup_null()
{
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,"")
}
//设置网页打印的页眉页脚为默认值
function pagesetup_default()
{
try{
var RegWsh = new ActiveXObject("WScript.Shell")
hkey_key="header"
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"&w&b页码,&p/&P")
hkey_key="footer"
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"&u&b&d")
}catch(e){}
}
</script>
相关文章推荐
- js 设置网页打印的页眉页脚和页边距
- 通过javascript设置打印网页时去掉页眉页脚
- 网页打印样式设置(页眉,页脚,页边距)
- 网页打印设置+自带的打印预览+去掉打印时的页眉页脚+屏蔽打印
- 网页打印设置,页眉页脚的设置
- JavaScript实现网页打印,可设置页眉、页脚、页边距
- JAVASCRIPT实现网页打印,可设置页眉、页脚、页边距
- js 设置网页打印的页眉页脚和页边距
- 打印网页时怎么去掉页眉页脚
- 设置html页面打印的页眉页脚
- 打印网页时怎么去掉页眉页脚
- 浏览器菜单打印页眉页脚的设置
- 使用javascript去掉打印网页时页眉与页脚的内容
- javascript打印设置页眉页脚
- VBSCRIPT控制网页打印页眉和页脚
- WebBrowser 打印设置,打印预览,去页眉和页脚
- JS调用打印方法设置页眉页脚的实例
- IE浏览器打印的页眉页脚设置解决方法
- Javascript页面打印的页眉页脚的清除与设置
- 打印html网页,是否打印页眉页脚