HyvesConnect-JS

An example Case: Become a member of a Hyve

Let’s say you have a website and you want to place a Button from where a person can ‘Become a member of a Hyve’.

To get this Button on your website you will need to add two short JavaScript code.

Step 1

Place this following line between the < head> tags of your document:

<script type='text/javascript' src='http://www.hyves.nl/precompiled/hyvesconnect.js'></script>

Step 2

Find the position where you want to place the Smartbutton in the rest of the document (after the < body> tag) and place the following code at that spot:

<script type='text/javascript'>Hyves.connect.hub({hub_id: 'laysfans'});</script>

You can change the title and body to your needs.

Extra

You can change the button image size with an extra options parameter called "iconsize" (16, 24, 32 or 48). So for example this will be:

<script type='text/javascript'>Hyves.connect.hub({hub_id: 'laysfans'}, {iconsize:16});</script>