<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() { 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> <input type="button" value="清空頁碼" οnclick=pagesetup_null()> </script> |
打印時清空頁眉頁腳
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.