ajax.html 1010 B

1234567891011121314151617181920212223242526272829303132
  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. <p>The tooltip content can be loaded via AJAX.</p>
  15. <div style="margin:20px 0;"></div>
  16. <a href="#" class="easyui-tooltip" data-options="
  17. content: $('<div></div>'),
  18. onShow: function(){
  19. $(this).tooltip('arrow').css('left', 20);
  20. $(this).tooltip('tip').css('left', $(this).offset().left);
  21. },
  22. onUpdate: function(cc){
  23. cc.panel({
  24. width: 500,
  25. height: 'auto',
  26. border: false,
  27. href: '_content.html'
  28. });
  29. }
  30. ">Hove me</a> to display tooltip content via AJAX.
  31. </body>
  32. </html>