(五)在前端增加相應代碼顯示文檔

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- 引入需要的js -->
     <script type="text/javascript" src="js/jquery.js"></script>
     <script type="text/javascript" src="js/flexpaper_flash.js"></script>
     <script type="text/javascript" src="js/flexpaper_flash_debug.js"></script> 
  <style type="text/css" media="screen">   
   html, body  { height:100%; }   
   body { margin:0; padding:0; overflow:auto; }  
    #flashContent { display:none; } 
 </style>

 <title>xianshi</title>
  </head>

  <body>
    <div style="position:absolute;left:10px;top:10px;">
            <a id="viewerPlaceHolder" style="width:660px;height:480px;display:block"></a>

            <script type="text/javascript"> 
                var fp = new FlexPaperViewer(   

//                      文件路徑要寫對
                         'swf/FlexPaperViewer',
                         'viewerPlaceHolder', { config : {
                         SwfFile : escape('swf/DFMA.swf'),
                         Scale : 0.6, 
                         ZoomTransition : 'easeOut',
                         ZoomTime : 0.5,
                         ZoomInterval : 0.2,
                         FitPageOnLoad : true,
                         FitWidthOnLoad : false,
                         FullScreenAsMaxWindow : false,
                         ProgressiveLoading : false,
                         MinZoomSize : 0.2,
                         MaxZoomSize : 5,
                         SearchMatchAll : false,
                         InitViewMode : 'Portrait',
                         PrintPaperAsBitmap : false,

                         ViewModeToolsVisible : true,
                         ZoomToolsVisible : true,
                         NavToolsVisible : true,
                         CursorToolsVisible : true,
                         SearchToolsVisible : true,

                         localeChain: 'en_US'
                         }});
            </script>
        </div>
  </body>
</html>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章