f81fdc5e6d054e6b1f994da3368fa0608a75b220.svn-base 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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="../../"/>
  12. <link rel="stylesheet" type="text/css" id="customSkin"/>
  13. <!--框架必需end-->
  14. <!--动态选项卡start-->
  15. <script type="text/javascript" src="../../libs/js/nav/dynamicTab.js"></script>
  16. <!--动态选项卡end-->
  17. </head>
  18. <body>
  19. <div class="box1" style="width: 800px;"><div class="box_topcenter"><div class="box_topleft"><div class="box_topright"></div></div></div><div class="box_middlecenter"><div class="box_middleleft"><div class="box_middleright"><div class="boxContent" style="overflow: visible;height:500px;">
  20. <fieldset>
  21. <legend>1、基本使用</legend>
  22. <div id="tab_menu"></div>
  23. <div id="page" style="width:95%;height:300px;border:solid 1px #cccccc;"></div>
  24. </fieldset>
  25. <div class="height_15"></div>
  26. </div></div></div></div><div class="box_bottomcenter"><div class="box_bottomleft"><div class="box_bottomright"></div></div></div></div>
  27. <script>
  28. $( function() {
  29. var tab = new TabView( {
  30. containerId :'tab_menu',
  31. pageid :'page',
  32. cid :'tab1',
  33. position :"top"
  34. });
  35. tab.add( {
  36. id :'tab1_index1',
  37. title :"选项卡1",
  38. url :"../../sample_html/nav/tab-basic-content1.html",
  39. isClosed :false
  40. });
  41. tab.add( {
  42. id :'tab1_index2',
  43. title :"选项卡2",
  44. url :"../../sample_html/nav/tab-basic-content2.html",
  45. isClosed :false
  46. });
  47. tab.add( {
  48. id :'tab1_index3',
  49. title :"选项卡3",
  50. url :"../../sample_html/nav/tab-basic-content1.html",
  51. isClosed :true
  52. });
  53. tab.activate("tab1_index1")
  54. });
  55. </script>
  56. </body>
  57. </html>