test.jsp 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <HTML>
  2. <HEAD>
  3. <META http-equiv="Content-Type" content="text/html; charset=gb2312">
  4. <META http-equiv="Content-Style-Type" content="text/css">
  5. <META http-equiv="Content-Script-Type" content="text/javascript">
  6. <TITLE>Checking if Acrobat Reader installed (IE4+)...</TITLE>
  7. <%
  8. request.setCharacterEncoding("UTF-8"); //防止乱码问题
  9. String value = request.getParameter("value");
  10. String width = request.getParameter("width");
  11. String height = request.getParameter("height");
  12. %>
  13. <SCRIPT for="window" event="onload">
  14. <!--
  15. document.all [
  16. document.all.PDFNotKnown ? "IfNoAcrobat" : "IfAcrobat"
  17. ] .style.display = "block";
  18. //-->
  19. </SCRIPT>
  20. </HEAD>
  21. <BODY scroll=no>
  22. <NOSCRIPT>
  23. Cannot determine if you have Acrobat Reader (or the full Acrobat)
  24. installed <FONT size="-1">(because JavaScript is unavailable or
  25. turned off)</FONT>.
  26. </NOSCRIPT>
  27. <DIV id="IfNoAcrobat" style="display:none">
  28. 你需要先安装Adobe Reader才能正常浏览文件,请点击<a href=http://get.adobe.com/cn/reader/download/?installer=Reader_11.0_Chinese_Simplified_for_Windows target="_blank">这里</a>下载Adobe Reader.
  29. </DIV>
  30. <OBJECT type="application/pdf" width=0 height=0 style="display:none">
  31. <DIV id="PDFNotKnown" style="display:none">&nbsp;</DIV>
  32. </OBJECT>
  33. <DIV id=showdiv style="Z-INDEX: 0; LEFT:10px; WIDTH: 900px; POSITION: absolute; TOP: 0px; HEIGHT: 10px">
  34. <object id="adobeobject" classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width="<%=width %>" height="<%=height %>" border="0" top="-10" name="pdf">
  35. <param name="toolbar" value="false">
  36. <param name="_Version" value="65539">
  37. <param name="_ExtentX" value="20108">
  38. <param name="_ExtentY" value="10866">
  39. <param name="_StockProps" value="0">
  40. <param name="SRC" id="test" value="8a819eb250db23610150e9e13d6017dd.pdf">
  41. </object>
  42. </DIV>
  43. </BODY>
  44. </HTML>