日期:2014-05-16 浏览次数:20440 次
<body>
??? <div align="center" id="dayinDiv">
??? ??? <div class="NOPRINT">
??? ??? ??? <SCRIPT Language="Javascript">
??? ??? ??? ??? function printit(){?
??? ??? ??? ??? ??? if (window.print) {
??? ??? ??? ??? ??? ??? window.print() ;?
??? ??? ??? ??? ??? } else {
??? ??? ??? ??? ??? ??? var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
??? ??? ??? ??? ??? ??? document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
??? ??? ??? ??? ??? ??? WebBrowser1.ExecWB(6, 2);
??? ??? ??? ??? ??? }
??? ??? ??? ??? }
??? ??? ??? </script>
??? ??? ??? <script Language="Javascript">?
??? ??? ??? ??? var NS = (navigator.appName == "Netscape");
??? ??? ??? ??? var VERSION = parseInt(navigator.appVersion);
??? ??? ??? ??? if (VERSION > 3) {
??? ??? ??? ??? ??? document.write('<form><input type=button value="打印" name="Print" onClick="printit()"></form>');???????
??? ??? ??? ??? }
??? ??? ??? </script>
??? ??? </div>
??? ??? <center><img src="/opt/image/print.png" /></center>
??? </div>
</body>
?
详情参考附件