Torchlight 2 Armory Tooltips

This short guide will walk you through adding tooltips from Torchlight 2 Armory to your website.



1. Installation

Add the following code to your page. Preferably at the end of your page after the closing body tag. <script type="text/javascript" src="http://www.Torchlight2Armory.com/js/db_tooltips.js"></script>
If you like you can download a test html page (Right-click and save as) that you can upload to your server to test features and play with stuff without any copy/pasting from here.



2. Usage

Links to items and skills will now support a tooltip straight from our database. Code: <a href="http://torchlight2armory.com/item?i=-2597280696034428331">Helmcracker</a>
Result: Helmcracker



Quality Colored Links

Links can be colored based on quality level. Simply use "class=q#" where # is a number between 1 and 6. 1 = White (Normal), 2 = Green (Magic), 3 = Blue (Rare), 4 = Orange (Unique), 5 = Pink (Legendary), 6 = Purple (Quest). Code: <a href="http://torchlight2armory.com/item?i=-2597280696034428331" class="q4">[Helmcracker]</a>
Result: [Helmcracker]
Code: <a href="http://torchlight2armory.com/item?i=-406997788936495697" class="q5">[Mountain of the Cannibal God]</a>
Result: [Mountain of the Cannibal God]



Other Links

Skills and NPCs also support links. Code: <a href="http://torchlight2armory.com/skill?i=Ember Hammer" class="q1">Ember Hammer</a>
Result: Ember Hammer
Code: <a href="http://torchlight2armory.com/npc?i=379149064125419999">General Grell</a>
Result: General Grell

Use the "rel" attribute to have a skill tooltip display a certain rank. Code: <a href="http://torchlight2armory.com/skill?i=Ember Hammer" rel="&amp;rank=5">Ember Hammer</a>
Result: Ember Hammer



Friends

Use our tooltips on your website? Send us a message and we will list your site below.

Fansites

Guilds


Questions, comments, problems or concerns? Feel free to contact us.