applied static imports patch from Ricardo Pedroso
[swftools.git] / wx / viewers / flexpaper / FlexPaperViewer.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> \r
2 <!-- saved from url=(0014)about:internet --> \r
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">     \r
4     <head> \r
5         <title></title>         \r
6         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> \r
7         <style type="text/css" media="screen"> \r
8                         html, body      { height:100%%; }\r
9                         body { margin:0; padding:0; overflow:auto; }   \r
10                         #flashContent { display:none; }\r
11         </style> \r
12                 \r
13                 <script type="text/javascript" src="js/swfobject/swfobject.js"></script>\r
14                 \r
15                 <script type="text/javascript">\r
16                         if(window.addEventListener)\r
17                         window.addEventListener('DOMMouseScroll', handleWheel, false);\r
18                         window.onmousewheel = document.onmousewheel = handleWheel;\r
19                         \r
20                         if (window.attachEvent) \r
21                         window.attachEvent("onmousewheel", handleWheel);\r
22                         \r
23                         function handleWheel(event){\r
24                                 try{\r
25                                         if(!window.document.FlexPaperViewer.hasFocus()){return true;}\r
26                                         window.document.FlexPaperViewer.setViewerFocus(true);\r
27                                         window.document.FlexPaperViewer.focus();\r
28                                         \r
29                                         if(navigator.appName == "Netscape"){\r
30                                                 if (event.detail)\r
31                                                         delta = 0;\r
32                                                 if (event.preventDefault){\r
33                                                         event.preventDefault();\r
34                                                         event.returnValue = false;\r
35                                                         }\r
36                                         }\r
37                                         return false;   \r
38                                 }catch(err){return true;}               \r
39                         }\r
40                 </script>\r
41                 \r
42         <script type="text/javascript"> \r
43             <!-- For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. --> \r
44             var swfVersionStr = "9.0.124";\r
45             <!-- To use express install, set to playerProductInstall.swf, otherwise the empty string. -->\r
46             var xiSwfUrlStr = "${expressInstallSwf}";\r
47             var flashvars = { \r
48                   SwfFile : escape("%(swffilename)s"),\r
49                                   Scale : %(scale)s, \r
50                                   ZoomTransition : "%(zoomtransition)s",\r
51                                   ZoomTime : %(zoomtime)s,\r
52                                   ZoomInterval : %(zoominterval)s,\r
53                                   FitPageOnLoad : %(fitpageonload)s,\r
54                                   FitWidthOnLoad : true,\r
55                                   PrintEnabled : true,\r
56                                   FullScreenAsMaxWindow : true,\r
57                                   localeChain: "%(localechain)s"\r
58                                   };\r
59                          var params = {\r
60                                 \r
61                             }\r
62             params.quality = "high";\r
63             params.bgcolor = "#ffffff";\r
64             params.allowscriptaccess = "sameDomain";\r
65             params.allowfullscreen = "true";\r
66             var attributes = {};\r
67             attributes.id = "FlexPaperViewer";\r
68             attributes.name = "FlexPaperViewer";\r
69             swfobject.embedSWF(\r
70                 "FlexPaperViewer.swf", "flashContent", \r
71                 "600", "500", \r
72                 swfVersionStr, xiSwfUrlStr, \r
73                 flashvars, params, attributes);\r
74                         swfobject.createCSS("#flashContent", "display:block;text-align:left;");\r
75         </script> \r
76         \r
77     </head> \r
78     <body> \r
79         <div style="position:absolute;left:10px;top:10px;">\r
80                 <div id="flashContent"> \r
81                         <p> \r
82                                 To view this page ensure that Adobe Flash Player version \r
83                                         9.0.124 or greater is installed. \r
84                                 </p> \r
85                                 <script type="text/javascript"> \r
86                                         var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://"); \r
87                                         document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='" \r
88                                                                         + pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" ); \r
89                                 </script> \r
90                 </div>\r
91                 <div id="errNoDocument" style="padding-top:10px;">\r
92                         Can't see the document? Running FlexPaper from your local directory? Make sure you have added FlexPaper as trusted. You can do that at <a href="http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04a.html#119065">Adobe's website</a>.  \r
93                 </div> \r
94         </div>\r
95    </body> \r
96 </html> \r