Sorry Oswald, it does not work in Moodle. The example you give on http://fp.tsn.at/hs-abschluss/danke.htm is not a Moodle site. In that example, some extra text is added within a <span> tag. Have you actually tried your CSS example by adding those CSS Lines to the end of a CSS file in a moodle theme?
Thanks for the idea of using the overLib scripts. I will explore that.
What I have been able to achieve so far involves both hacking one moodle file (mod/glossary/filter.php) and adding CSS rules in a moodle theme. It is not satisfactory, as the "box" can only be displayed in a fixed position away from the autolinked word, but it's a way forward (seen attached screenshot (2), actually taken from a Moodle site).
Ji, it might help us find a solution if you told us exactly why you need this resizing of the tooltip balloon (1a). Do you in fact want the text inside that box to appear in larger font? (1b) If not, I really don't understand why you would want the tooltip balloon to be larger.
Finally, Ji and Oswald, this has nothing to do with Java. It might be achieved with Javascript (a different language).
Joseph