Subversion Repositories wimsdev

Rev

Rev 5903 | 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. Le second parameter is the css style (in a simple form) and/or the position.
  7.  
  8. :example
  9. <span class="wims_help_example">Example</span>
  10. <textarea id="wims_show91" cols="100" rows="8" readonly="readonly">
  11. \special{tooltip the tooltip,,the word has 5 letters}
  12. \special{tooltip the tooltip,style="width:100px" class="left", the word has 5 letters}
  13. \special{tooltip the tooltip,style="width:300px;background-color:blue;color:white",
  14.   a formula \(\frac{a}{b}\)}
  15. </textarea>
  16.  
  17. The position can be fixed by adding one of the css <span class="tt">left</span>,
  18. <span class="tt">right</span>,
  19. <span class="tt">top</span>,
  20. <span class="tt">bottom</span>, by default, the tooltip is on the right.
  21.