Guild Wars 2 item tooltip is a JavaScript utility to add tooltips for Guild Wars 2 items to display information about them. No frameworks required and simple to use.
Tooltips can be added in two ways:
ItemTooltip.addDirect
); orItemTooltip.addNow
).<head> <!-- Include the script and style --> <script src="js/ItemTooltip.js"></script> <link rel="stylesheet" href="css/ItemTooltip.css" /> </head> <body> <!-- Add the tooltip to an element --> <a id="demoItemTooltip">This is an item tooltip.</a> <script> GW2Tooltip.addNow(document.getElementById("demoItemTooltip"), 46762, ItemTooltip); </script> </body>
A: At the moment it works for items only, but I'm planning on adding this functionality later on.
A: The Guild Wars 2 API does currently not offer a way to retrieve this information, or at least not directly from the item itself.
A: Yes. It does not require any framework and it should not collide with any framework either.