by prettyscripts on 2008-08-03 00:24:13
javascript • html • b2evolution
i’ve been wanting to add item tool tips to my wow blog. you know, the cool popup text displayed when you move your mouse over an item link. like how it looks in-game.
the first came to mind was itemstats, which i’ve used to setup websites for my previous guilds. however it does not support b2evo.
since there will be no further developments on itemstats, i thought about doing a plugin. but i need to learn how to write a plugin and it seems complicated. the project was put aside.
then i discovered wowhead tooltips (via reading posts from blog azeroth). it’s even simpler to implement, but requires additional steps to use.
i did some minor modifications to instruction.
add this anywhere on the page:
Code:
<script type="text/javascript" src="http://www.wowhead.com/widgets/power.js"></script> |
note: i put this in the skin’s index.main.php. this is perhaps not the best way. if you change your skin, it will not work. but if you’re sure you will never change to another skin, then it shouldn’t be a problem.
where you want to place the link:
Code:
<a class="qx" href="http://www.wowhead.com/?item=number">name</a> |
go to wowhead to look up the item / spell you want. copy and paste name and url.
for class qx, replace x with numbers 0 to 5 to indicate color of the link / item:
no need to define these colors in your own css. it’s all done for you.
if background of your site is white, you will have problem displaying the white item.
Tags: b2evo, itemstat, javascript, wow, wowhead