提个问题,高手勿笑
以下代码是emu在回答某贴时所奉献出的代码的一部分。
JK想知道的是,
emu知道CLSID:8856F961-340A-11D0-A96B-00C04FD705A2是用于打印的,
并且有ExecWB(8,1)的用法,
而JK咋就不知道????
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>打印测试</title>
<style>
@media print{.onlyShow{display:none} }
</style>
<SCRIPT LANGUAGE="JavaScript">
function pageSetup(){try{WB.ExecWB(8,1)}catch(e){alert("您的浏览器不支持此功能")}}
function preView(){try{WB.ExecWB(7,1)}catch(e){alert("您的浏览器不支持此功能")}}
</SCRIPT>
</head>
<body>
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WB width=0 VIEWASTEXT></OBJECT>
<center class=onlyShow>
<button onclick='pageSetup()'>页面设置</button>
<button onClick='preView()'>打印预览</button>
</center>
<H1 align=center>打印测试</h1>
</body>
</html>