Subversion Repositories wimsdev

Rev

Rev 4427 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. <script type="text/javascript" src="scripts/js/wz_tooltip.js"></script>
  2. :signification
  3. create a tooltip :  the first parameter is the text of the
  4. link,
  5. the third parameter is the text which appears in the tooltip.
  6. the second parameter is text option inside bracket :
  7. Inside brackets, you must put option as in the wz_tooltip.js documentation.
  8. Default is : [FONTSIZE, '12pt', ABOVE, 'true']
  9. If you want only to load the javascript (once time is sufficient for one
  10. html page), do not put any parameter. If you do not want to load the javascript
  11. because you are sure it is already loaded in the html page, add <tt class="wims_code_words">nojs</tt>
  12. in the second parameter.
  13. You can configure css style class <tt class="wims_code_words">span.tooltip</tt>.
  14.  
  15. :example
  16. <span class="wims_help_example">Example</span>
  17. <pre>
  18. \special{tooltip click here, ,the word has 5 letters}
  19. \special{tooltip click here,[DURATION, 4000, FONTSIZE, '18pt'], the word has 5 letters}
  20. \special{tooltip click here,[TITLE, 'Some Title', PADDING, 9],un texte}
  21. \special{tooltip }
  22. \special{tooltip click here,nojs [TITLE, 'Some Title', PADDING, 9],un texte}
  23. </pre>
  24. <p>The possible options for tooltips are  (from www.walterzorn.com)
  25.  <embed>
  26. !read js/tooltip_doc.html
  27. </embed>