The ultimate questions, web printing

Related Tags:

  Often WEB printing needs ScriptX.cab, here is the same, so is the same principle here will be explained in detail is how to control print issue. 

  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> 

Related articles:

Dreamweaver MX used to establish a simple library Enquiry System (2)
  Third, the production by category query and display pages 1, a new dynamic website named xianshi.asp.    2, the establishment of records set.    Select Application in the Bindings panel labels, according plus button, select Recordset (Query), the pop-up dialog box Records...
3 freestyle adaptive layout 770-1024 width!
  This is the most typical example, in the practical, and the three intermediate points css layout, the following two characteristics:    1. Middle three effects can be realized separate background color.    2. Overall narrowest 770 px and a maximum width of 1024 px, that ...
Some on Google Sitemap awareness
  Many of my friends have just entered the SEO industry, with a lot of questions may be, for example: why my ranking is not a good stand, I included the station, such as why so few.    When you some advice SEOER, they will teach you some of the measures, which have included on the G...
(To) real-time switching CSS style
  Real-time switching CSS style    Create your own CSS Switchers    W3C standards with the construction of the site, theoretically, be able to complete performance and structural separation.    Figuratively speaking, it is in the fixed frame (structure, XHMTL) a...
JavaScript tips of how to use history on the website and forward
  Disanji how to use history on the website and forward    We can let you look at a different document syntax here, we are here to talk about the back () and forward () function of the two, if you own the paper, there is a link back to your own document is the last link document it,...