7b80f669405c53763fc9bbf865f072b4f75c7c05.svn-base 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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%>/" scrollerY="false"/>
  16. <link rel="stylesheet" type="text/css" id="customSkin"/>
  17. <!--框架必需end-->
  18. <!--鱼眼菜单start-->
  19. <script type="text/javascript" src="<%=path%>/libs/js/nav/fishEye.js"></script>
  20. <!--鱼眼菜单end-->
  21. </head>
  22. <body >
  23. 应用场景见框架的desktop风格。
  24. <div class="dock" id="mydock">
  25. <div class="dock_left"></div>
  26. <div class="dock_center">
  27. <div id="dock">
  28. <div class="dock-container">
  29. <a class="dock-item" href="javascript:;" title="账户管理" keepDefaultStyle="true"><span>账户管理</span><img src="<%=path%>/libs/images/stacks/01.png"></a>
  30. <a class="dock-item" href="javascript:;" title="电子邮件" keepDefaultStyle="true"><span>电子邮件</span><img src="<%=path%>/libs/images/stacks/02.png"/></a>
  31. <a class="dock-item" href="javascript:;" title="综合查询" keepDefaultStyle="true"><span>综合查询</span><img src="<%=path%>/libs/images/stacks/03.png"/></a>
  32. <a class="dock-item" href="javascript:;" title="系统设置" keepDefaultStyle="true"><span>系统设置</span><img src="<%=path%>/libs/images/stacks/04.png"/></a>
  33. </div>
  34. </div>
  35. </div>
  36. <div class="dock_right"></div>
  37. <div class="clear"></div>
  38. </div>
  39. <script>
  40. $(function(){
  41. //初始化鱼眼菜单
  42. $('#dock').Fisheye(
  43. {
  44. maxWidth: 64,
  45. items: 'a',
  46. itemsText: 'span',
  47. container: '.dock-container',
  48. itemWidth: 80,
  49. proximity: 80,
  50. valign: 'bottom',
  51. halign : 'center'
  52. }
  53. );
  54. })
  55. //当浏览器尺寸变化时重设菜单位置,让菜单始终水平居中
  56. function customHeightSet(contentHeight){
  57. $("#mydock").css({
  58. "left":($("body").width()-700)/2
  59. })
  60. }
  61. </script>
  62. </body>
  63. </html>