jhlovett 发表于 2013-2-7 16:17:18

js实现打印一些小功能

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><script   language="javascript">         function   printsetup(){         //   打印页面设置         wb.execwb(8,1);         }         function   printpreview(){         //   打印页面预览         wb.execwb(7,1);               }           function printit()         {         if(confirm('确定打印吗?')){            wb.execwb(6,6)         }         }         </script>   </head><body><OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height=0   id=wb   name=wb   width=0></OBJECT><input type="button"   name="button_print"   value="打印" >       <input type="button" name="button_setup"   value="打印页面设置" >         <input type="button" name="button_show"   value="打印预览">         <input type="button"   name="button_fh"   value="关闭" ></body></html> 
页: [1]
查看完整版本: js实现打印一些小功能