-
  • EN
    • EN
    • RU

Tooltips

Tooltips for your site

You can easy add MHIB tooltip on your site.
  1. Add this piece of HTML code in the <head> section of your page:
    <script type="text/javascript" src="http://marvelheroes.info/widjets/mhib_tooltip.js"></script>
  2. Put link on any item from us Item Base

Tooltips for website using Google Chrome Extensions

Also you can add MHIB tooltip on any website (not work for https) where is links to items.
  1. Install Custom JavaScript for websites from Chrome Web Store
  2. Open website (example: forums.marvelheroes.com)
  3. Click on cjs and paste the code:
    head = document.getElementsByTagName("head")[0];
    var script = document.createElement("script");
    script.type = "text/javascript";
    script.language = "javascript";
    script.src =  "//marvelheroes.info/widjets/mhib_tooltip.js";
    head.appendChild(script);
  4. Press Save and Refresh page

Advanced settings of tooltip

<script> var IB_Setup = {'colorlinks': true, 'showicons': true, 'costume': false, 'translucency': true};</script>

Tooltip allows customization for your site. You can enable or disable the ability to automatically change the color of links (match the colors in the game), display icon, costumes or translucency. To activate this options need change the condition is true or false.

Options:

  • colorlinks - automatic color change all links on items to game colors
  • showicons - display icons near with description
  • costume – display image of costume (for fast loading better disable)
  • translucency - transparent background when displaying tooltip (for white pages better disable)

Default setup you have: changed colors for links, display icon, translucency, disable display the costume for items costume.

Use links on the site

After adding the tooltip code on site users will be able to use the base of marvelheroes.info for you to indicate items.
From button Share Links you get code for your type of website. Now possible get links like:

Direct link:

http://marvelheroes.info/item/123/ 

BB-code:

[URL = http://marvelheroes.info/item/123/] Anti-Metal Ammunition [/URL] 

HTML code:

<a href='http://marvelheroes.info/item/123/'> Anti-Metal Ammunition </a>

Demo link Anti-Metal Ammunition

Custom Mode

Also you can make custom links, for this need press button Custom under selected item on item page and set your values.

Example custom links (BB-code example):

Normal link:

[url=http://marvelheroes.info/item/865]ENHANCED Hawkeye Kate Bishop Costume[/URL]

Demo link ENHANCED Hawkeye Kate Bishop Costume

Link with random:

[url=http://marvelheroes.info/item/865/a:48:57:70:51:1:25:16:0]ENHANCED Hawkeye Kate Bishop Costume[/URL]

Demo link ENHANCED Hawkeye Kate Bishop Costume

Custom link:

[url=http://marvelheroes.info/item/865/v:295:247:1182:1200:25:25:100:86_a:48:57:70:51:1:25:16:0]ENHANCED Hawkeye Kate Bishop Costume[/URL]

Demo link ENHANCED Hawkeye Kate Bishop Costume

Feedback

If you found technical error or can't install tooltip contact us by e-mail feedback@marvelheroes.info. We are open for cooperation and ready to help in solving problems.