浏览器打印
/*
?* 2004年12月21日
?* Author:longware< longware@126.com>
?* Usage:<script language="JavaScript" src="./ie6print.js"></script>
?* Note:瀏覽器需求IE6.0+,在HTTP頁面上打印必須將IE的安全級別降低.
?*/
document.writeln("<style>");
document.writeln(".btn{font-size:9pt;border-bottom:#cccccc 1px ridge;border-right:#cccccc 1px ridge;border-top:#ffffff 1px ridge;border-left:#ffffff 1px ridge;}");
document.writeln("</style>");
document.writeln("<style media=/"print/">");
document.writeln(".Noprint{display:none;}");
document.writeln(".PageNext{page-break-after: always;}");
document.writeln("</style>");
document.write("<scri");
document.write("pt language=/"JavaS");
document.write("cript/">");
document.writeln("function printSetup(){wb.execwb(8,1);}");
document.writeln("function printPreview(){wb.execwb(7,1);}");
document.writeln("function printNow(){if(confirm('您確定開始打印嗎?')){window.print();}}//wb.execwb(6,6);");
document.writeln("function printHelp(){alert(/"如果出現(xiàn)『該頁上的 ActiveX 控件不安全』的提示,請將瀏覽器『Internet選項』中的相關安全設置降低即可。/")}");
document.writeln("</script>");
document.writeln("<div class=/"Noprint/" align=/"right/">");
document.writeln("<br>");
document.writeln("<object classid=/"clsid:8856f961-340a-11d0-a96b-00c04fd705a2/" height=/"0/" width=/"0/" id=/"wb/" name=/"wb/"></object>");
document.writeln("<input type=/"button/" value=/"頁面設置/" class=/"btn/" οnclick=/"printSetup();/"> ");
document.writeln("<input type=/"button/" value=/"打印預覽/" class=/"btn/" οnclick=/"printPreview();/"> ");
document.writeln("<input type=/"button/" value=/"開始打印/" class=/"btn/" οnclick=/"printNow()/"> ");
document.writeln("<input type=/"button/" value=/"幫助/" class=/"btn/" οnclick=/"printHelp()/" style=/"cursor:help/"> ");
document.writeln("<input type=/"button/" value=/"關閉窗口/" class=/"btn/" οnclick=/"window.close()/"> ");
document.writeln("</div>");
?* 2004年12月21日
?* Author:longware< longware@126.com>
?* Usage:<script language="JavaScript" src="./ie6print.js"></script>
?* Note:瀏覽器需求IE6.0+,在HTTP頁面上打印必須將IE的安全級別降低.
?*/
document.writeln("<style>");
document.writeln(".btn{font-size:9pt;border-bottom:#cccccc 1px ridge;border-right:#cccccc 1px ridge;border-top:#ffffff 1px ridge;border-left:#ffffff 1px ridge;}");
document.writeln("</style>");
document.writeln("<style media=/"print/">");
document.writeln(".Noprint{display:none;}");
document.writeln(".PageNext{page-break-after: always;}");
document.writeln("</style>");
document.write("<scri");
document.write("pt language=/"JavaS");
document.write("cript/">");
document.writeln("function printSetup(){wb.execwb(8,1);}");
document.writeln("function printPreview(){wb.execwb(7,1);}");
document.writeln("function printNow(){if(confirm('您確定開始打印嗎?')){window.print();}}//wb.execwb(6,6);");
document.writeln("function printHelp(){alert(/"如果出現(xiàn)『該頁上的 ActiveX 控件不安全』的提示,請將瀏覽器『Internet選項』中的相關安全設置降低即可。/")}");
document.writeln("</script>");
document.writeln("<div class=/"Noprint/" align=/"right/">");
document.writeln("<br>");
document.writeln("<object classid=/"clsid:8856f961-340a-11d0-a96b-00c04fd705a2/" height=/"0/" width=/"0/" id=/"wb/" name=/"wb/"></object>");
document.writeln("<input type=/"button/" value=/"頁面設置/" class=/"btn/" οnclick=/"printSetup();/"> ");
document.writeln("<input type=/"button/" value=/"打印預覽/" class=/"btn/" οnclick=/"printPreview();/"> ");
document.writeln("<input type=/"button/" value=/"開始打印/" class=/"btn/" οnclick=/"printNow()/"> ");
document.writeln("<input type=/"button/" value=/"幫助/" class=/"btn/" οnclick=/"printHelp()/" style=/"cursor:help/"> ");
document.writeln("<input type=/"button/" value=/"關閉窗口/" class=/"btn/" οnclick=/"window.close()/"> ");
document.writeln("</div>");
總結(jié)
- 上一篇: 如何用迅捷PDF转换器将图片转成Exce
- 下一篇: Bypass Preventing CS