hover.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. <p>Move mouse over the tab strip to open the tab panel.</p>
  15. <div style="margin:20px 0;"></div>
  16. <div id="tt" class="easyui-tabs" style="width:700px;height:250px">
  17. <div title="About" style="padding:10px">
  18. <p style="font-size:14px">jQuery EasyUI framework helps you build your web pages easily.</p>
  19. <ul>
  20. <li>easyui is a collection of user-interface plugin based on jQuery.</li>
  21. <li>easyui provides essential functionality for building modem, interactive, javascript applications.</li>
  22. <li>using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.</li>
  23. <li>complete framework for HTML5 web page.</li>
  24. <li>easyui save your time and scales while developing your products.</li>
  25. <li>easyui is very easy but powerful.</li>
  26. </ul>
  27. </div>
  28. <div title="My Documents" style="padding:10px">
  29. <ul class="easyui-tree" data-options="url:'tree_data1.json',method:'get',animate:true"></ul>
  30. </div>
  31. <div title="Help" data-options="iconCls:'icon-help',closable:true" style="padding:10px">
  32. This is the help content.
  33. </div>
  34. </div>
  35. <script type="text/javascript">
  36. $(function(){
  37. var tabs = $('#tt').tabs().tabs('tabs');
  38. for(var i=0; i<tabs.length; i++){
  39. tabs[i].panel('options').tab.unbind().bind('mouseenter',{index:i},function(e){
  40. $('#tt').tabs('select', e.data.index);
  41. });
  42. }
  43. });
  44. </script>
  45. </body>
  46. </html>