javascript小的技巧 超强推荐第4 5页.docVIP

  • 1
  • 0
  • 约2.5万字
  • 约 41页
  • 2018-06-03 发布于福建
  • 举报
javascript小的技巧 超强推荐第4 5页

javascript小技巧 超强推荐第4 5页   //页面进入和退出的特效 进入页面meta http-equiv=Enter content=revealTrans(duration=x, transition=y) 推出页面meta http-equiv=Exit content=revealTrans(duration=x, transition=y) 这个是页面被载入和调出时的一些特效。duration表示特效的持续时间,以秒为单位。transition表示使 用哪种特效,取值为1-23:   0 矩形缩小   1 矩形扩大   2 圆形缩小   3 圆形扩大   4 下到上刷新   5 上到下刷新   6 左到右刷新   7 右到左刷新   8 竖百叶窗   9 横百叶窗   10 错位横百叶窗   11 错位竖百叶窗   12 点扩散   13 左右到中间刷新   14中间到左右刷新   15 中间到上下   16 上下到中间   17 右下到左上   18 右上到左下   19 左上到右下   20 左下到右上   21 横条   22 竖条   23 //网页是否被检索 meta name=ROBOTS content=属性值   其中属性值有以下一些:   属性值为all: 文件将被检索,且页上链接可被查询;   属性值为none: 文件不被检索,而且不查询页上的链接;   属性值为index: 文件将被检索;   属性值为follow: 查询页上的链接;   属性值为noindex: 文件不检索,但可被查询链接;   属性值为nofollow: //打印分页 p style=break-after:alwayspage1/p p style=break-after:alwayspage2/p //设置打印 object id=factory style=display:none viewastext classid=clsid:1663ed61-23eb-11d2-b92f-008048fdd814 codebase=/scriptx/ScriptX.cab#Version=5,60,0,360 /object input type=button value=页面设置 onclick=factory.printing.PageSetup() input type=button value=打印预览 onclick=factory.printing.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 = 居左显示b居中显示b居右显示页码,第p页/共P页 factory.printing.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=打印本页 onclick=factory.printing.Print(false) input type=button value=页面设置 oncl

文档评论(0)

1亿VIP精品文档

相关文档