Subversion Repositories wimsdev

Rev

Rev 3655 | Rev 12973 | 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 parms=!slashsubst $parms
  10. !set parm1=!item 1 of $parms
  11. !set text=!item 3 to -1 of $parms
  12. !set option=!item  2 of $parms
  13. !if nojs iswordof $option
  14.   !set option=!replace internal nojs by in $option
  15.   !set special_out=
  16. !else
  17.   !set special_out= <script type="text/javascript" src="scripts/js/wz_tooltip.js"></script>  
  18. !endif
  19. !set option=!trim $option
  20. !set option=!declosing $option
  21. !if $option=$empty
  22.   !set option=FONTSIZE, '12pt', ABOVE, 'true'
  23. !endif
  24. !if $parm1 != $empty
  25.  !set text=!replace internal ' by \' in $text
  26. !set text=!replace internal " by in $text
  27.  !set text=!replace internal &#59; by ; in $text
  28.  !set text=!replace internal &#44; by , in $text
  29. !! !set text=!replace internal " by &#quot; in $text
  30. !! !set text=!replace internal < by &#lt; in $text
  31. !! !set text=!replace internal > by &#gt; in $text
  32. !set text=!replace internal $\
  33. $ by  $  in  $text
  34. !set special_out=$special_out\
  35. <span class="tooltip"><a onmouseover="Tip('$text',$option)" onmouseout="UnTip()">$parm1</a></span>
  36. !else
  37. !set special_out=$text
  38. !endif
  39. $special_out
  40.