在IE中打印,左下角列出了,当前网页的地址,是否可以在程序中将该信息屏蔽。 csdn有這個問題的回答,你可以找一下以前已解決的問題有空也可以幫你找找,:) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <HTML><HEAD><TITLE> New Document </TITLE><META NAME="Generator" CONTENT="EditPlus"><META NAME="Author" CONTENT="YC"><script language="VBScript">dim hkey_root,hkey_path,hkey_keyhkey_root="HKEY_CURRENT_USER"hkey_path="\Software\Microsoft\Internet Explorer\PageSetup"'//设置网页打印的页眉页脚为空function pagesetup_null() on error resume next Set RegWsh = CreateObject("WScript.Shell") hkey_key="\header" RegWsh.RegWrite hkey_root+hkey_path+hkey_key,"" hkey_key="\footer" RegWsh.RegWrite hkey_root+hkey_path+hkey_key,""end function'//设置网页打印的页眉页脚为默认值function pagesetup_default() on error resume next Set RegWsh = CreateObject("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"end function</script></HEAD><BODY><br><br><br><br><br><br><p align=center><input type="button" value="清空页码" onclick=pagesetup_null()><input type="button" value="恢复页吗" onclick=pagesetup_default()><br></p></BODY></HTML> 梅花雨,你这段代码好像在jsp中无法正常使用。好像是: Set RegWsh = CreateObject("WScript.Shell")这句话不行?麻烦你,再指点一二! 请教关于插件flexigrid的表格编辑问题 实现图片放大功能只能对一张起作用,不能多张图片同时起效果 急求一个简单问题的解决办法,在线等待,解决马上结贴~~~~~~~~~~~~~~~~~~~~~~~~ document.write中的双引号问题~急! 一个对象的属性所拥的方法如何能引用到该对象? 动态创建div坐标显示问题 js cookie设置,临时文件里却没有cookie!? 用正則表達式能不能把字符串的所有的字母a b c de後面加1 如何用js调用本地程序。 请教帮主! 时区问题 在javascript中用什么函数来去掉首尾的空格
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="YC">
<script language="VBScript">
dim hkey_root,hkey_path,hkey_key
hkey_root="HKEY_CURRENT_USER"
hkey_path="\Software\Microsoft\Internet Explorer\PageSetup"
'//设置网页打印的页眉页脚为空
function pagesetup_null()
on error resume next
Set RegWsh = CreateObject("WScript.Shell")
hkey_key="\header"
RegWsh.RegWrite hkey_root+hkey_path+hkey_key,""
hkey_key="\footer"
RegWsh.RegWrite hkey_root+hkey_path+hkey_key,""
end function
'//设置网页打印的页眉页脚为默认值
function pagesetup_default()
on error resume next
Set RegWsh = CreateObject("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"
end function
</script>
</HEAD><BODY>
<br>
<br>
<br>
<br>
<br>
<br><p align=center>
<input type="button" value="清空页码" onclick=pagesetup_null()>
<input type="button" value="恢复页吗" onclick=pagesetup_default()><br></p>
</BODY>
</HTML>
好像是: Set RegWsh = CreateObject("WScript.Shell")
这句话不行?
麻烦你,再指点一二!