|
![]() |
名片设计 CorelDRAW Illustrator AuotoCAD Painter 其他软件 Photoshop Fireworks Flash |
|
auto=1立刻PRINT,否则timeOut毫秒后PRINT,如printPage(0,5000); function printPage($auto=1,$timeOut=10000) { if ($auto == 1) { echo " < SCRIPT LANGUAGE="JavaScript" > < !-- Begin if (window.print) { window.print(); } else { alert(\\'No printer driver in your PC\\'); } // End -- > < /script > n"; } else { echo " < SCRIPT LANGUAGE="JavaScript" > < !-- Begin if (window.print) { setTimeout(\\'printCheck()\\',\\'$timeOut\\'); } else { alert(\\'No printer driver in your PC\\'); } function printCheck() { agree = confirm(\\'OK to print now?\\'); if (agree) window.print(); } // End -- > < /script > n"; } } 返回类别: 教程 上一教程: 搜索引擎技术核心揭密 下一教程: 一个程序下载的治理程序(三) 您可以阅读与"用在PHP里的JS打印函数"相关的教程: · PHP, JScript 和 VBScript 函数和类的语法 · Linux 下的 Apache+JServ+ojsp+SSL+PHP(IMAP+LDAP+MYSQL) 的安装(转三) · PHP中的DOM XML函数--可惜没有例子--等有空到老外那边[偷]来 · PHP4与MySQL数据库操作函数详解(一) · PHP版的escape/unescape函数 |
![]() ![]() |
快精灵印艺坊 版权所有 |
首页![]() ![]() ![]() ![]() ![]() ![]() ![]() |