bd51d58d7df1a70aba2567ee8f703880008e8f79.svn-base 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%
  3. String path = request.getContextPath();
  4. %>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  9. <title></title>
  10. <!--框架必需start-->
  11. <script type="text/javascript" src="<%=path%>/libs/js/jquery.js"></script>
  12. <script type="text/javascript" src="<%=path%>/libs/js/language/cn.js"></script>
  13. <script type="text/javascript" src="<%=path%>/libs/js/framework.js"></script>
  14. <link href="<%=path%>/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  15. <link rel="stylesheet" type="text/css" id="skin" prePath="<%=path%>/"/>
  16. <link rel="stylesheet" type="text/css" id="customSkin"/>
  17. <!--框架必需end-->
  18. <!--用于引入flash的脚本start-->
  19. <script type="text/javascript" src="<%=path%>/libs/js/method/swfobject.js"></script>
  20. <!--用于引入flash的脚本end-->
  21. <script>
  22. function initComplete(){
  23. var interval_time=4 //图片停顿时间,单位为秒,为0则停止自动切换
  24. var flawidth=document.getElementById('flashcontent').offsetWidth;
  25. var flaheight=document.getElementById('flashcontent').offsetHeight;
  26. var focus_width=flawidth //宽度
  27. var focus_height=flaheight //高度
  28. var text_height=0 //标题高度
  29. var text_align= 'center' //标题文字对齐方式(left、center、right)
  30. var swf_height = focus_height+text_height //相加之和最好是偶数,否则数字会出现模糊失真的问题
  31. var pics= '<%=path%>/libs/images/demo/demo1.jpg|<%=path%>/libs/images/demo/demo2.jpg|<%=path%>/libs/images/demo/demo3.jpg'//图片地址
  32. var links='http://www.baidu.com|http://www.sina.com.cn|http://mail.163.com'//相对于图片的链接地址
  33. var texts='标题1|标题2|标题3'//标题文字
  34. var so = new SWFObject("<%=path%>/libs/flash/slider.swf", "focus", "100%", "100%", "7", "#ffffff");
  35. so.addParam('wmode','opaque');
  36. so.addParam('quality','high');
  37. so.addParam("scale", "noscale" );
  38. so.addParam("menu", "false" );
  39. so.addVariable("pics",pics);
  40. so.addVariable("links",links);
  41. so.addVariable("texts",texts);
  42. so.addVariable("textheight",text_height);
  43. so.addVariable("borderwidth",focus_width);
  44. so.addVariable("borderheight",focus_height);
  45. so.addVariable("text_align",text_align);
  46. so.addVariable("interval_time",interval_time);
  47. so.addVariable("textheight",text_height);
  48. so.addVariable("width",focus_width);
  49. so.addVariable("height",swf_height);
  50. so.write("flashcontent");
  51. }
  52. </script>
  53. </head>
  54. <body>
  55. <div class="box1" panelWidth="438">
  56. <div id="flashcontent" style="width:400px;height:200px;">
  57. <div class="flash_install">
  58. <div class="msg_icon3"></div>
  59. <div class="flash_install_con" >
  60. 您需要升级Flash播放器,<span class="forIE"><a href="<%=path%>/libs/flash/flash_IE.exe">点击这里</a>安装</span>
  61. <span class="forFF"><a href="<%=path%>/libs/flash/flash_FF.exe">点击这里</a>进行安装</span><br />安装后请关闭浏览器再重新打开
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. </body>
  67. </html>