The ultimate questions, web printing
Related Tags:
Print the document must have two:
1: configuration: setting.js
2: Showing documents: print.js
Setting.js as follows:
Document.write ( "<object id = \" factory \ "style = \" display: none \ "viewastext classid = \" clsid: 1663ed61-23eb-11d2-b92f-008048fdd814 \ "codebase = \" images / events / ScriptX . 5,60,0360 cab # Version = \ "> </ object>");
Function Printers () (
Agree = confirm ( 'Print identified?');
If (agree) (
If (agree)
(
NoPrinter.style.visibility = 'hidden';
Factory.printing.Print ();)
Else NoPrinter.style.visibility = 'visible';
)
)
Factory.printing.header = ""
Factory.printing.footer = ""
Factory.printing.leftMargin = 0.75
Factory.printing.topMargin = 0.75
Factory.printing.rightMargin = 0.75
Factory.printing.bottomMargin = 0.75
Show documents print.js as follows:
Document.write ( '<style media="print"> @ media print (. Noprint (display: none)) </ style>');
/////////////////////////////////~~ Control Print button when not in the look of the page do not print where only need to invoke the pattern can be
Document.write ( '<div id=NoPrinter name=NoPrinter align=right style="visibility:visible" class="noprint"> <br>');
Document.write ( '<input type=button class=button value= closed name="bFQ" id="bFQ" onclick=\"javascript\:window.close()\">');
Document.write ( '<input type="button" value="打印设置" onclick=\"factory.printing.PageSetup()\">');
Document.write ( '<input type="button" value="打印预览" onclick=\"factory.printing.Preview()\">');
Document.write ( '<input type=button name=button3 value="打印" onclick="Printers()"> </ div>');
In the use of print function, as long as the documents contained in the two documents placed in the pages of the local print button can be, the code below:
<script Src="../inc/print/Printer.js"> </ script>
<script Src="../inc/print/Printers.js"> </ script>
- WEB standards: the structure of XHTML tags
- Web standards: XHTML + CSS (W3C)
- With hyperlinks to Web standards
- Dreamweaver 8 to get to web standards
- XHTML (WEB standards), I see
- Beginner web standards Misunderstandings
- Web standards, and to where?
- Web standards for the establishment and its significance
- WEB standards Frequently Asked Questions
- Some of the standards-related web links
- Css & Web standards xhtml
- Road to the web standards
- WEB standards establishment - an XHTML Essentials
- Web standards Beginners: What is XHTML?
- The commercial value of web standards
- WEB standards
- Xhtml + CSS on the web standards
- Some Thoughts on the web standards
- Document.all standards and WEB
- Web standards beginner: CSS and XHTML




