Tooltips for Your Site

Writing a guide, running a guild site or a forum? Add one script tag and every link to a ZugZugDB item, spell, quest or NPC on your page shows the same hover tooltip it shows here, Forever marks included. It is free, needs no account or key, sets no cookies and fetches nothing until a reader hovers.

<script src="https://zugzugdb.com/embed/tooltips.js" defer></script>

Then link the ordinary way:

<a href="https://zugzugdb.com/item/19019/thunderfury-blessed-blade-of-the-windseeker">Thunderfury, Blessed Blade of the Windseeker</a>

Try it

Hover a link (or tap it on a phone). This page runs the script with icons and colours on:

Any link to zugzugdb.com of these shapes, with or without the name part:

KindPageShort link
Item/item/<id>/<name>/i/<id>
Spell/spell/<id>/<name>/s/<id>
Quest/quest/<id>/<name>/q/<id>
NPC/npc/<id>/<name>/n/<id>

Every other link is left alone. To switch tooltips off for one link, or for a whole section, put data-zz-tip="off" on the link or on anything around it.

Icons and colours

Two extras, off unless you ask for them on the script tag:

<script src="https://zugzugdb.com/embed/tooltips.js" data-icons="on" data-colors="on" defer></script>
  • data-icons="on" puts the record's small game icon in front of the link text.
  • data-colors="on" colours item links by quality: grey, white, green, blue, purple, orange.

Both need the tooltip before anyone hovers, so with either one on the script fetches the tooltips of the links as they scroll into view, a few at a time, each record once. A guide with hundreds of links stays fast: nothing below the fold is fetched until the reader gets there.

What the script does and never does

  • It is 11.1 KB (4.2 KB compressed). Without the extras it loads nothing until somebody hovers, focuses or taps a link.
  • No cookies, no storage, no analytics. Tooltips are fetched without cookies and without a referrer.
  • Your links keep their address, text and click. Only the extras change how a link looks.
  • It draws in its own sealed box: your styles do not reach the tooltip, ours do not reach your page.
  • Keyboard focus shows the tooltip, Escape hides it. On a phone the first tap shows it, the second follows the link.
  • Each tooltip ends with a zugzugdb.com line linking to the record's page. Please keep it.

Load the script from our server or copy it to yours. Either way the tooltips come from zugzugdb.com, one record at a time, cached for a day.

More ways to link to us, link buttons and a search box: Linking to ZugZugDB.