Latest in Gaming

Image credit:

WoW Insider: Now with Wowhead tooltips

Eliah Hecht

The more observant among you may have noticed something neat happen to the site over the past few days: all item links that point to Wowhead now have tooltips! In case you hadn't noticed, here are a few examples:

That should save some people a click or two, and more importantly, it looks cool (in my opinion, anyway). And the most exciting part is that this is really easy to get going on your own site. All you have to do is include this one line anywhere in the page:

<script src=""></script>

That's it! Now all Wowhead item links have tooltips.

If you want to jazz the links up a little by making them show up in the appropriate color, you can put "class=q#" in the <a> tag, where # is the number of the quality level of the item: 5 for legendary, 4 for epic, and so on down the scale. As an example, the code for the Arcanite Steam Pistol link above looks like this:

<a class="q4" href="">Arcanite Steam Pistol</a>

But your tooltips will still work if you don't want to bother with the class attribute; the links will just all be the same color. Now you too can be powered by Wowhead!

From around the web

ear iconeye icontext filevr