hover.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Hover Tabs - jQuery EasyUI Demo</title>
  6. <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
  7. <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  8. <link rel="stylesheet" type="text/css" href="../demo.css">
  9. <script type="text/javascript" src="../../jquery.min.js"></script>
  10. <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
  11. </head>
  12. <body>
  13. <h2>Hover Tabs</h2>
  14. <div class="demo-info">
  15. <div class="demo-tip icon-tip"></div>
  16. <div>Move mouse over the tab strip to open the tab panel.</div>
  17. </div>
  18. <div style="margin:10px 0;"></div>
  19. <div id="tt" class="easyui-tabs" style="width:700px;height:250px">
  20. <div title="About" style="padding:10px">
  21. <p style="font-size:14px">jQuery EasyUI framework help you build your web page easily.</p>
  22. <ul>
  23. <li>easyui is a collection of user-interface plugin based on jQuery.</li>
  24. <li>easyui provides essential functionality for building modem, interactive, javascript applications.</li>
  25. <li>using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.</li>
  26. <li>complete framework for HTML5 web page.</li>
  27. <li>easyui save your time and scales while developing your products.</li>
  28. <li>easyui is very easy but powerful.</li>
  29. </ul>
  30. </div>
  31. <div title="My Documents" style="padding:10px">
  32. <ul class="easyui-tree" data-options="url:'tree_data1.json',method:'get',animate:true"></ul>
  33. </div>
  34. <div title="Help" data-options="iconCls:'icon-help',closable:true" style="padding:10px">
  35. This is the help content.
  36. </div>
  37. </div>
  38. <script type="text/javascript">
  39. $(function(){
  40. var tabs = $('#tt').tabs().tabs('tabs');
  41. for(var i=0; i<tabs.length; i++){
  42. tabs[i].panel('options').tab.unbind().bind('mouseenter',{index:i},function(e){
  43. $('#tt').tabs('select', e.data.index);
  44. });
  45. }
  46. });
  47. </script>
  48. </body>
  49. </html>