Template talk:Tt
Jump to navigation
Jump to search
Formatting isn't "published" yet but the idea is simple.
- On page load, get all tagged span statements.
- Run through them looking for class="ttip".
- Once it's found, get the internal span with class="ttipinfo".
- Strip the from it so only the contents are used as the tooltip.
- Attach an onmouseover=ttipDisplay('<contents of ttipinfo>') to the ttip so, onmouseover will execute a display of the tooltip.
The formats used to accomplish this are in the css classes:
- ttip puts a double-underline on the tip and changes the cursor to a question while over the tip.
- ttipinfo simply sets that portion of text to display: none to hide the text.