I've been working on getting the tooltips to work correctly recently, There was afew issues with the page scrolling on mouseover but i was able to do some studying to learn how to counter it.There was also an issue with our webhost pre-made code which i had to pull apart to get this working correctly. Just link an item from wowhead using the wowhead url for example if you want the shield off illidan you'll get
http://www.wowhead.com/?item=32375
To color your item tooltip links based on item quality, put "class=q#" in the tag, where # is the number of the quality level of the item:
5 is legendary (orange), 4 is epic (purple), 3 is rare (blue), 2 is uncommon (green), 1 is common (white), 0 is poor (gray). Example:
Code
<a class="q5" href="http://www.wowhead.com/?item=19019">Thunderfury, Blessed Blade of the Windseeker</a>
to get
Thunderfury, Blessed Blade of the Windseeker