ajax.html 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Ajax Tooltip - 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>Ajax Tooltip</h2>
  14. <div class="demo-info">
  15. <div class="demo-tip icon-tip"></div>
  16. <div>The tooltip content can be loaded via AJAX.</div>
  17. </div>
  18. <div style="margin:10px 0;"></div>
  19. <a href="#" class="easyui-tooltip" data-options="
  20. content: $('<div></div>'),
  21. onShow: function(){
  22. $(this).tooltip('arrow').css('left', 20);
  23. $(this).tooltip('tip').css('left', $(this).offset().left);
  24. },
  25. onUpdate: function(cc){
  26. cc.panel({
  27. width: 500,
  28. height: 'auto',
  29. border: false,
  30. href: '_content.html'
  31. });
  32. }
  33. ">Hove me</a> to display tooltip content via AJAX.
  34. </body>
  35. </html>