- 博客(0)
- 资源 (9)
- 收藏
- 关注
web 打印,控制 分页控件
下载ScriptX.cab控件,修改codebase的值,默认下面的设置也可以。
页面加载控件:
<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>
控件使用教本:
<script defer>
function SetPrintSettings() {
// -- advanced features ,未曾使用过,有待确认。
factory.printing.SetMarginMeasure(2) // measure margins in inches
factory.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 = "This is MeadCo"
factory.printing.footer = "Advanced Printing by ScriptX"
factory.printing.portrait = false //方向,true
factory.printing.leftMargin = 1.0
factory.printing.topMargin = 1.0
factory.printing.rightMargin = 1.0
factory.printing.bottomMargin = 1.0
factory.printing.Print(false) //直接打印,true ,好像不起作用,总是弹出选择打印机窗口
factory.printing.PageSetup() //打印设置
factory.printing.Preview() //打印预览
}
2008-09-09
最牛比的css菜单生成工具(收藏)-不下后悔一辈子
IE - Running Scripts From your Hard Drive Warning!
If you have SP2 installed, by default, IE will show a warning message and attempt to block QuickMenu from
running until you allow active content from your hard drive. This warning and block does not occur online,
it is a local IE security precaution only.
Despite the warning, OpenCube software will not access your system, this is simply an IE precaution.
Firefox, Safari, and Netscape by default, trust local content, and QuickMenu will run from your hard drive in these browsers.
To allow active content in IE you can....
A: Temporarily enable the software by clicking the yellow security warning bar, and selecting
"Allow Blocked Content".
B: Permanently enable active content locally...
1: Select 'Tools' --> 'Internet Options' from the IE menu.
2: Click the 'Advanced' tab.
3: Check the 2nd option under 'Security' in the tree (Allow active content to run in files on my computer.)
---Menus and Flash Objects---
Overview-
Flash objects are programmed to take up all of the available real estate in a page at
the point where they are inserted. This means that dynamic content, such as all drop
down menus will have their sub menus covered when they attempt to load over a Flash
object. Unfortunately, due to the way that Flash renders in the individual browsers
there is nothing that can be done with the menu code to resolve this problem. However,
Flash does have parameters and embed codes that can be added to the Flash object to
allow for dynamic content, such as menus to display on top of the Flash object.
The wmode Parameter-
2008-09-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人