JavaScript Technical Skills Encyclopedia (II)

Source: Internet
Author: User
Tags object manual window
Tips//Web pages are retrieved<meta name= "content=" Property value >
There are some of the following property values:
The property value is "All": The file will be retrieved and the link on the page can be queried;
The property value is "None": The file is not retrieved and the link on the page is not queried;
The property value is "index": The file will be retrieved;
Property value is "Follow": a link on the query page;
The property value is "Noindex": The file is not retrieved but can be queried for links;
Property value is "nofollow":


//print pagination <p style= "Page-break-after:always" >page1</p>
<p style= "Page-break-after:always" >page2</p>


//Set up printing

<object id= "Factory" style= "Display:none" Viewastext
Classid= "clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
Codebase= "Http://www.meadroid.com/scriptx/ScriptX.cab#Version=5,60,0,360"
></object>
<input Type=button value= Page setup >
<input Type=button value= Print Preview >

<script language=javascript>
function Window.onload ()
{
--Advanced Features
Factory.printing.SetMarginMeasure (2)//measure margins in inches
Factory.printing.SetPageRange (False, 1, 3)//need pages from 1 to 3
Factory.printing.printer = "HP DeskJet 870C"
Factory.printing.copies = 2
Factory.printing.collate = True
Factory.printing.paperSize = "A4"
Factory.printing.paperSource = "Manual feed"
--Basic features
Factory.printing.header = "Live Left display &b Center display &b Right Display page number, page &p/Total &p page"
Factory.printing.footer = "(Custom footer)"
Factory.printing.portrait = False
Factory.printing.leftMargin = 0.75
Factory.printing.topMargin = 1.5
Factory.printing.rightMargin = 0.75
Factory.printing.bottomMargin = 1.5
}
function Print (frame) {
Factory.printing.Print (True, frame)//Print with prompt
}
</script>
<input Type=button value= "Print this page" >
<input Type=button value= "Page Setup" >
<input Type=button value= "Print Preview" ><br>
<a href= "http://www.meadroid.com/scriptx/docs/printdoc.htm?static" target=_blank> specific use manual, more information, point here </a>
 

//Self-print preview

WEBBROWSER.EXECWB (1,1) Open
WEB.EXECWB (2,1) closes all of the IE windows now and opens a new window
WEB.EXECWB (4,1) Save Web page
WEB.EXECWB (6,1) printing
WEB.EXECWB (7,1) Print preview
WEB.EXECWB (8,1) print Page Setup
WEB.EXECWB (10,1) view page Properties
WEB.EXECWB (15,1) seems to be withdrawn, pending confirmation
WEB.EXECWB (17,1) Select all
WEB.EXECWB (22,1) Refresh
WEB.EXECWB (45,1) Close the form without prompting
<style media=print>
. Noprint{display:none;} <!--hide nonprinting items when printing with this style-->
. Pagenext{page-break-after:always;} <!--control pagination-->
</style>
<object id= "WebBrowser" width=0 height=0 classid= "CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" >
</object>

<center class= "Noprint" >
<input Type=button value= Print ONCLICK=DOCUMENT.ALL.WEBBROWSER.EXECWB (6,1) >
<input Type=button value= Direct Printing ONCLICK=DOCUMENT.ALL.WEBBROWSER.EXECWB (6,6) >
<input Type=button value= Page Setup ONCLICK=DOCUMENT.ALL.WEBBROWSER.EXECWB (8,1) >
</p>
<p> <input Type=button value= Print preview ONCLICK=DOCUMENT.ALL.WEBBROWSER.EXECWB (7,1) >
</center>


[1] [2] Next page



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.