Tooltips For Your Website

Information

It's never been easier to add OpenWoW tooltips to your website

  1. Add the following to the head tag of your page HTML
    <script type="text/javascript" src="http://cdn.openwow.com/api/tooltip.js"></script>
  2. That's all there is to it, OpenWoW links found on your website will now display tooltips with detailed information

Customization

Automatic renaming, quality colors, color overrides to match your website and icons

  1. Add the following in the head tag of your page HTML, do not add it if you do not want any automatic customization on page load
    <script>
    var openwowTooltips = {
            /* Enable or disable the rename of URLs into item, spell and other names automatically */
            rename: true,
            /* Enable or disable icons appearing on the left of the tooltip links. */
            icons: true,
            /* Overrides the default icon size of 15x15, 13x13 as an example, icons must be true */
            iconsize: 15,
            /* Enable or disable link rename quality colors, an epic item will be purple for example. */
            qualitycolor: true,
            /* TBA */
            forcexpac: { },
            /* Override link colors, qualitycolor must be true. Example: spells: '#000' will color all renamed spell links black. */
            overridecolor: {
                spells: '',
                items: '',
                npcs: '',
                objects: '',
                quests: '',
                achievements: ''
            } 
    };
    </script>

Usage

Adding any links to your website that are supported will generate a tooltip on mouseover

  • Wrath of the Lich King
    <a href="http://wotlk.openwow.com/item=19019">Thunderfury, Blessed Blade of the Windseeker</a>
  • Cataclysm
    <a href="http://cata.openwow.com/item=61340">Vicious Gladiator's Pike</a>
  • Mists of Pandaria
    <a href="http://mop.openwow.com/item=102245">Qian-Le, Courage of Niuzao</a>