Subversion Repositories wimsdev

Rev

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

  1. !!##language independant
  2.  
  3. !! \tooltip{texte}{[option]}{popup text}
  4. !if $parms issametext
  5.    !set special_out= <script type="text/javascript" src="scripts/js/wz_tooltip.js"></script>
  6.    $special_out
  7. !exit
  8. !endif
  9. !set parm1=!item 1 of $parms
  10. !set text=!item 3 to -1 of $parms
  11. !set option=!item  2 of $parms
  12. !if nojs iswordof $option
  13.   !set option=!replace internal nojs by in $option
  14.   !set special_out=
  15. !else
  16.   !set special_out= <script type="text/javascript" src="scripts/js/wz_tooltip.js"></script>  
  17. !endif
  18. !set option=!trim $option
  19. !set option=!declosing $option
  20. !if $option=$empty
  21.   !set option=FONTSIZE, '12pt', ABOVE, 'true'
  22. !endif
  23. !if $parm1 != $empty
  24.  !set text=!replace internal ' by \' in $text
  25. !set text=!replace internal $\
  26. $ by  $  in  $text
  27. !set special_out=$special_out\
  28. <span class=tooltip><a onmouseover="Tip('$text', $option)">$parm1</a></span>
  29. !else
  30. !set special_out=$text
  31. !endif
  32. $special_out
  33.  
  34.