http://community.csdn.net/Expert/topic/4601/4601025.xml?temp=.4530451
解决方案 »
- 求助::静态网页里插入的rmvb格式的文件,上传服务器就不能播放了。
- javascript导出excel文件问题
- JS 字体放大缩小
- jsp中form与html:form中action的区别问题
- 用javascript实现连接远程服务器上的access数据库
- 急求,,很简单的一个代码问题,,
- 为何该脚本在ie中可显示但是在firefox中该flash显示不出图片呢?
- 一个Json格式转换问题,求大神赐个函数
- 网页A打开网页B,在网页B执行过程,执行完毕向网页A传值,怎么传?
- 如何用javascript调用本地的一个exe文件?
- 高分求救:JavaScript 如何验证 Email 格式的正确性? 十万火急!!!
- 动态插入行后成功进行删除,但是现在要对id重新赋值,是否可以呢?如果不行那有什么办法
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>
var hkey_root,hkey_path,hkey_key
hkey_root="HKEY_CURRENT_USER"
hkey_path="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\"
//设置网页打印的页眉页脚为空
function pagesetup_null(){
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){}
}
}
</script>