7ab248f490ee84841dd2d5f8bf98790864d47872.svn-base 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <title></title>
  6. <!--框架必需start-->
  7. <script type="text/javascript" src="../../libs/js/jquery.js"></script>
  8. <script type="text/javascript" src="../../libs/js/language/cn.js"></script>
  9. <script type="text/javascript" src="../../libs/js/framework.js"></script>
  10. <link href="../../libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  11. <link rel="stylesheet" type="text/css" id="skin" prePath="../../" scrollerY="false"/>
  12. <link rel="stylesheet" type="text/css" id="customSkin"/>
  13. <!--框架必需end-->
  14. <!--鱼眼菜单start-->
  15. <script type="text/javascript" src="../../libs/js/nav/fishEye.js"></script>
  16. <!--鱼眼菜单end-->
  17. </head>
  18. <body >
  19. 应用场景见框架的desktop风格。
  20. <div class="dock" id="mydock">
  21. <div class="dock_left"></div>
  22. <div class="dock_center">
  23. <div id="dock">
  24. <div class="dock-container">
  25. <a class="dock-item" href="javascript:;" title="账户管理" keepDefaultStyle="true"><span>账户管理</span><img src="../../libs/images/stacks/01.png"></a>
  26. <a class="dock-item" href="javascript:;" title="电子邮件" keepDefaultStyle="true"><span>电子邮件</span><img src="../../libs/images/stacks/02.png"/></a>
  27. <a class="dock-item" href="javascript:;" title="综合查询" keepDefaultStyle="true"><span>综合查询</span><img src="../../libs/images/stacks/03.png"/></a>
  28. <a class="dock-item" href="javascript:;" title="系统设置" keepDefaultStyle="true"><span>系统设置</span><img src="../../libs/images/stacks/04.png"/></a>
  29. </div>
  30. </div>
  31. </div>
  32. <div class="dock_right"></div>
  33. <div class="clear"></div>
  34. </div>
  35. <script>
  36. $(function(){
  37. //初始化鱼眼菜单
  38. $('#dock').Fisheye(
  39. {
  40. maxWidth: 64,
  41. items: 'a',
  42. itemsText: 'span',
  43. container: '.dock-container',
  44. itemWidth: 80,
  45. proximity: 80,
  46. valign: 'bottom',
  47. halign : 'center'
  48. }
  49. );
  50. })
  51. //当浏览器尺寸变化时重设菜单位置,让菜单始终水平居中
  52. function customHeightSet(contentHeight){
  53. $("#mydock").css({
  54. "left":($("body").width()-700)/2
  55. })
  56. }
  57. </script>
  58. </body>
  59. </html>