Template talk:Tt

From Lotro-Wiki.com
Jump to navigation Jump to search

Formatting isn't "published" yet but the idea is simple.

  1. On page load, get all tagged span statements.
  2. Run through them looking for class="ttip".
  3. Once it's found, get the internal span with class="ttipinfo".
  4. Strip the from it so only the contents are used as the tooltip.
  5. 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.