在html上面显示pdf代码(禁用工具栏)
来源:互联网 发布:深圳开网络出租屋 编辑:程序博客网 时间:2024/06/03 06:31
<link type="text/css" href="<%=ctxPath%>/egp/css/style/css.css" rel="stylesheet"/>
<script type="text/javascript">
window.onload=function(){
document.all[document.getElementById("PDFNotKnown") ? "IfNoAcrobat" : "showdiv"].style.display = "block";
//当能显示pdf的时候,设置工具栏无用
if(document.getElementById("showdiv").style.display=="block"){
pdf.SetShowToolbar(false);
//document.getElementById("pdf").EnableCopy=false;
//document.getElementById("pdf").EnablePrint=false;
}
}
// 禁用右键功能
function stop(){
return false;
}
document.oncontextmenu=stop;
//禁止F8按钮
function keypressed() {
if(event.keyCode == 119) {
event.keyCode = 0;
return false;
}
}
</script>
<div class="right" id="abc" style="margin-top:-20px;">
<div class="cont-boxwrap2" id="c1">
<div class="con2" id="c2">
<h2 class="title"><span>意外险查询</span></h2>
<div class="boxwrap2" style="width:660px;overflow:auto;" id="cb2">
<div class="text-tabel1" style="overflow:auto;">
<fieldset class="auto_height" style="border:1px solid #ccc; background-color:#FFFFFF;">
<legend class="theme-color f16">条款预览</legend>
<div style="overflow:hidden;height:660px;">
<DIV id="IfNoAcrobat" style="display:none">
<a href="http://get.adobe.com/cn/reader/">你需要先安装Adobe Reader才能正常浏览文件,请点击这里下载Adobe Reader.</a>
</DIV>
<OBJECT type="application/pdf" width=0 height=0 style="display:none">
<DIV id="PDFNotKnown" style="display:none"> </DIV>
</OBJECT>
<DIV id="showdiv"
style="HEIGHT: 10px; margin-top: 10px;display: none;">
<object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width="100%" height="660" border="0" top="-10" name="pdf" id="pdf" >
<param name="toolbar" value="false">
<param name="pagemode" value="none">
<param name="_Version" value="65539">
<param name="_ExtentX" value="20108">
<param name="_ExtentY" value="10866">
<param name="_StockProps" value="0">
<param name="SRC" value="<%=ctxPath%>/clause/<%=request.getParameter("clauseTemp")%>">
</object>
</DIV>
</div>
</fieldset>
</div>
<div class="btn-area" style="margin-top:10px;width:200px; margin-right:30%!important;margin-right:17%">
<div class="btn-themecolor" ><a href="###" onclick=" javascript:window.history.go(-1);">返回</a></div>
</div>
</div>
</div>
</div>
</div>
<!-- 禁止另存为 -->
<noscript><iframe src=*.html></iframe></noscript>
<script type="text/javascript">
window.onload=function(){
document.all[document.getElementById("PDFNotKnown") ? "IfNoAcrobat" : "showdiv"].style.display = "block";
//当能显示pdf的时候,设置工具栏无用
if(document.getElementById("showdiv").style.display=="block"){
pdf.SetShowToolbar(false);
//document.getElementById("pdf").EnableCopy=false;
//document.getElementById("pdf").EnablePrint=false;
}
}
// 禁用右键功能
function stop(){
return false;
}
document.oncontextmenu=stop;
//禁止F8按钮
function keypressed() {
if(event.keyCode == 119) {
event.keyCode = 0;
return false;
}
}
</script>
<div class="right" id="abc" style="margin-top:-20px;">
<div class="cont-boxwrap2" id="c1">
<div class="con2" id="c2">
<h2 class="title"><span>意外险查询</span></h2>
<div class="boxwrap2" style="width:660px;overflow:auto;" id="cb2">
<div class="text-tabel1" style="overflow:auto;">
<fieldset class="auto_height" style="border:1px solid #ccc; background-color:#FFFFFF;">
<legend class="theme-color f16">条款预览</legend>
<div style="overflow:hidden;height:660px;">
<DIV id="IfNoAcrobat" style="display:none">
<a href="http://get.adobe.com/cn/reader/">你需要先安装Adobe Reader才能正常浏览文件,请点击这里下载Adobe Reader.</a>
</DIV>
<OBJECT type="application/pdf" width=0 height=0 style="display:none">
<DIV id="PDFNotKnown" style="display:none"> </DIV>
</OBJECT>
<DIV id="showdiv"
style="HEIGHT: 10px; margin-top: 10px;display: none;">
<object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width="100%" height="660" border="0" top="-10" name="pdf" id="pdf" >
<param name="toolbar" value="false">
<param name="pagemode" value="none">
<param name="_Version" value="65539">
<param name="_ExtentX" value="20108">
<param name="_ExtentY" value="10866">
<param name="_StockProps" value="0">
<param name="SRC" value="<%=ctxPath%>/clause/<%=request.getParameter("clauseTemp")%>">
</object>
</DIV>
</div>
</fieldset>
</div>
<div class="btn-area" style="margin-top:10px;width:200px; margin-right:30%!important;margin-right:17%">
<div class="btn-themecolor" ><a href="###" onclick=" javascript:window.history.go(-1);">返回</a></div>
</div>
</div>
</div>
</div>
</div>
<!-- 禁止另存为 -->
<noscript><iframe src=*.html></iframe></noscript>
- 在html上面显示pdf代码(禁用工具栏)
- Html 让文字显示在图片的上面
- Html 让文字显示在图片的上面
- 在HTML中嵌入PDF代码
- ios-在键盘上面创建一个键盘上面的工具栏
- 在HTML页面中显示html代码
- 在html页面显示html代码
- Html 显示pdf
- 在网页上显示html代码
- juqery html方法加一个iframe在IE上面不显示的问题
- html上面通过websocket接收二进制图片数据并显示在页面上
- 在html页面显示pdf,实现pdf的预览和下载
- c# html代码转pdf
- ABAP在ALV工具栏显示一个计时器
- div怎样在object上面显示
- 在ListView上面动态显示控件
- UITableView section header 显示在最上面
- Android网络图片显示在ImageView 上面
- 金币阵列问题
- 11个免费的Web安全测试工具
- 语音特征参数MFCC计算的详细过程
- 函数模板与同名的非模板函数重载的时候,两者调用顺序
- oracle\sql2005\mysql修改表名的方式
- 在html上面显示pdf代码(禁用工具栏)
- Android真机上用logcat调试
- GetWindowLong函数
- Hadoop MapReduce程序中解决第三方jar包问题--终极解决方案
- 全球3大项目外包和接单网站介绍
- Linux安装mysql——源码安装
- oracle创建用户及授权
- Service与Android系统设计
- 通过adb网络连接调试Android应用程序