Letractively / tooltips

Automatically exported from code.google.com/p/tooltips
0 stars 0 forks source link

Missing doc info #25

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
1.0

Please provide any additional information below.
It is not clear on your documentation that the initialisation must be done
AFTER the definition of the tooltips.

So this code 
  $$("span .tipPopup").each( function(link) {
    new Tooltip(link, {mouseFollow: false});
  });
MUST be sitting AFTER this one
<span><span class='tipPopup' title='$content'>$anchor</span></span>

It could also be put into a function called by the onLoad handler of the
body element like in
<script type="text/javascript">
function createTooltips() {
  $$("span .tipPopup").each( function(link) {
    new Tooltip(link, {mouseFollow: false});
  });
  }
</script>
<body onLoad="createTooltips();">

And finally it is not clear that there needs to be an enclosing element.
For example this does not work:
<span class='tipPopup' title='$content'>$anchor</span>
But this does:
<span><span class='tipPopup' title='$content'>$anchor</span></span>

These two points would help a great deal if they were clearly specified in
your doc on your website.

Cheers!

Original issue reported on code.google.com by mittipro...@gmail.com on 20 Sep 2008 at 5:41