[求助]求助打印代码
点击“打印”按钮或文字 即可响应打印 请问这段代码怎么实现??
<OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"
height=2 id=wb name=wb width=3></OBJECT>
<input class="ipt" type=button name=button_print value="打印"
onclick="javascript:printit()">
<input class="ipt" type=button name=button_setup value="打印頁面設置"
onclick="javascript:printsetup();">
<input class="ipt" type=button name=button_show value="打印預覽"
onclick="jvascript:printpreview();">
<input class="ipt" type=button name=button_fh value="關閉"
onclick="javascript:window.close();">
</table>
<script language="javascript">
function printsetup(){
// 打印頁面設置
wb.execwb(8,1);
}
function printpreview(){
// 打印頁面預覽
wb.execwb(7,1);
}
function printit()
{
if (confirm('確定打印嗎?')) {
wb.execwb(6,6)
}
}
<style>
@media print {
.ipt {display:none}
}
</style>