<script language="JavaScript" type="text/javascript"> var HKEY_Root,HKEY_Path,HKEY_Key; HKEY_Root="HKEY_CURRENT_USER"; HKEY_Path="//Software//Microsoft//Internet Explorer//PageSetup//"; //设置网页打印的页眉页脚为空 function PageSetupNull() { var Wsh=new ActiveXObject("WScript.shell"); alert("nihao"); HKEY_Key="header"; Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,""); HKEY_Key="footer"; Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,""); alert("nihao"); } //设置网页打印的页眉页脚为默认值 function pagesetup_default() { var Wsh=new ActiveXObject("WScript.Shell"); hkey_key="/header"; HKEY_Key="header"; Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"&w&b页码,&p/&P"); HKEY_Key="footer"; Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"&u&b&d"); } </script>
如果觉得《我的职业兴趣测评》对你有帮助,请点赞、收藏,并留下你的观点哦!