关于打印的问题:在myeclipse里打印的按钮有效,但项目部署后,在网页上打开后,就显示:你的web浏览器阻止了这个站点,以不安全方式使用Active控件。 我点击“打印”也没有任何反应。求各位大神,帮忙看看:代码:
<html>
<head>
<title>ZUST_列车查询系统地图</title>
<script type="text/javascript">
function print(){
document.getElementById('printer').ExecWB(6,1);
}
function preview(){
document.getElementById('printer').ExecWB(7,1);
}
</script>
</head>
<body style="margin: 0px; padding: 0px;">
<object classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" id="printer" height="0" width="0"></object>
<img height="544px" width="1218px" src="images/ts.gif" border="0" />
<table width="100%" border="0">
<tr>
<td align="center"><input type="submit" name="button_print" value="打印" onclick="print()"/></td>
<td align="center"><input type="submit" name="button_preview" value="打印预览" onclick="preview()"/></td>
</tr>
</table>
</body>
</html>
<html>
<head>
<title>ZUST_列车查询系统地图</title>
<script type="text/javascript">
function print(){
document.getElementById('printer').ExecWB(6,1);
}
function preview(){
document.getElementById('printer').ExecWB(7,1);
}
</script>
</head>
<body style="margin: 0px; padding: 0px;">
<object classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" id="printer" height="0" width="0"></object>
<img height="544px" width="1218px" src="images/ts.gif" border="0" />
<table width="100%" border="0">
<tr>
<td align="center"><input type="submit" name="button_print" value="打印" onclick="print()"/></td>
<td align="center"><input type="submit" name="button_preview" value="打印预览" onclick="preview()"/></td>
</tr>
</table>
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货