WoW Insider: Now with Wowhead tooltips
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="http://www.wowhead.com/widgets/power.js"></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="http://www.wowhead.com/?item=29949">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!






Reader Comments (Page 1 of 1)
Degenerate Nov 22nd 2008 2:12PM
Arcanite Steam Pistol
akshun hero Nov 22nd 2008 2:13PM
Arcanite Steam Pistol
Jay Jan 7th 2009 3:09AM
Test
[url]http://www.wowhead.com/?item=40396[/url]
dav103id May 4th 2010 3:03PM
Arcanite Steam Pistol
Reckonar Dec 24th 2010 5:29PM
[url]http://www.wowhead.com/item=19141[/url]
helmetsandarmor143 Dec 6th 2011 4:38AM
thanks for sharing information.
Regards,
wrist guards
Baluki Nov 23rd 2007 1:22PM
Wow, is it really that easy? I've gotta get this going on my own site.
Duncan Nov 23rd 2007 1:27PM
Woot! GJ guys
skoh.fley Nov 23rd 2007 1:47PM
Awesome! I had no idea it was that easy. Way to keep up with the world!
PeeWee Nov 23rd 2007 2:13PM
Interesting, you wrote this article after I pointed this out in a comment in the other article about being Powered by Wowhead... ^^
Jack Nov 23rd 2007 2:17PM
Gah, how come it wasn't that easy when I was trying to do it?
Spirit Nov 23rd 2007 2:49PM
So is it only my server thats obsessed with linking Skullflame Shield?
I hope I did that right.
Replex Nov 23rd 2007 3:08PM
Arcanite Steam Pistol
Charlie Nov 23rd 2007 3:11PM
wow awsome. thanks for giving us web designers the tip!
Guernia Nov 23rd 2007 8:30PM
So it should also work if we post a link to Wowhead, right?
http://www.wowhead.com/?item=6299
Across Nov 24th 2007 5:40AM
You should also make mention of Thottbot which, technically, had it first and inspired Wowhead's linking mechanism. He even credits Thott on his own site.
Lenroc Nov 24th 2007 8:16PM
@10
I was going to say the same thing. I actually prefer Thottbot personally, so definitely props to http://thottbot.com/x/power
ryan Apr 14th 2008 4:12PM
Cowl
ryan Apr 14th 2008 4:15PM
sorry testing out hot to hotlink things
Cowl of the Illidari Highlord