Friday, November 23, 2007

Site Update

After reading about how to do the Wowhead pop-up window thingy for gear, I've decided to go back and update my links to allow for this and to colour-code the links appropriately. This will be nice for the future, since I'll no longer need to open seperate windows to see the stats itself.

The instructions to do this can be found here. The thing that was not articulated was how to colour-code the item. This seems to be a rather manual process and is done by adding class="qX" to the href hyperlink. X will correspond to the rarity as follows:

  • q0 = poor (gray)
  • q1 = common (white)
  • q2 = uncommon (green)
  • q3 = rare (blue)
  • q4 = epic (purple)
  • q5 = legendary (orange)
  • q6 = artifact (yellow)
I've also added in the search box for Wowhead, whose instructions can be found here.

No comments: