我做了个打印页面,怎么才能做到打印时不把网址打出来,不想要那个网址,要用程序来解决请教高手,谢谢
解决方案 »
- ie6和firefox 现实的效果不同
- js脚本拒绝访问
- 有关js的简单问题
- 孙鑫谈怎样学习编程
- 时间控件问题,哪个大侠帮我下
- 在线等,如何取得自定义标签.
- 晕死,急:document.form1.mobile_model.insertAdjacentHTML("beforeEnd","<option value=xx"+models[j]+">"+models[j]+"</option>");
- 使用JS如何获取当前页的URL(包含端口)
- 改变链接的属性问题。。。弱弱的问。
- 那位会用 ClearHistory ,独得20分
- dreamweaver 的3个选择题
- 【【如何取消双击选中的文本???】】
web 网站建设
classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
codebase="../global/smsx.cab#Version=6,4,438,06"> 引用这个控件 , <script type="text/javascript"> function pagePrint() {
factory.printing.Print(true) btn.style.display = '';
}
</script>
//手动建注册表
有些机器需要手动注册DLL文件的!
c:
cd \windows\system32\
regsvr32 mcprintx.dll
regsvr32 mcprintxu.dll
regsvr32 mcscripx.dll
regsvr32 mcmaxipt.dll
regsvr32 mcsecmgr.dllok
document.all("Prints").style.display = "none";
window.print();
}
<head>
<script type="text/javascript">
function printsetup(){
// 打印页面设置
wb.execwb(8,1);
}
function printpreview(){
// 打印页面预览
wb.execwb(7,1);
}
function printit()
{
if (confirm('确定打印吗?')){
wb.execwb(6,6)
}
}
</script>
<style type="text/css" media=print>
.noprint{display:none;}
</style>
</head>
<body>
<script type="text/javascript">
AC_AX_RunContent( 'classid','CLSID:8856F961-340A-11D0-A96B-00C04FD705A2','height','0','id','wb','name','wb','width','0' ); //end AC code
</script><noscript><OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height=0 id=wb name=wb width=0></OBJECT></noscript>
<p align="center">
<input type=button name=button_setup value=" 设 置 " class="noprint" onClick="javascript:printsetup();">
<input type=button name=button_show value=" 预 览 " class="noprint" onClick="javascript:printpreview();">
<input type=button name=button_print value=" 打 印 " class="noprint" onClick="javascript:printit()">
<hr align="center" width="100%" size="1" color="black" class="noprint">
</p>
<P>自己要打印的内容</P>
</body>以上只支持IE浏览器