The world’s largest Online Nautical Guide with information on more than 8500 Marinas
The Widget implementation is based on five steps. First of all you need to have a \"pbApi key\", that we will provide you. Please contact us if you don’t have this key. Contact
Example:
<script type="text/javascript" src="http://www.portbooker.com/widget/portbookerApi.js"></script>
<script type="text/javascript">
registerWidget("475a6f4e81496cda4d77dca90e528415");
setLogoPosition('bottom');
setLanguage('en');
setBackgroundColors('FFFFFF','F7F7F7','F7F7F7','F0F0F0');
setWidth(750);
setHeight(750);
createWidget('widget');
</script>
If you need further information about these functions please review the Widget API: Widget API
Example:
registerWidget("475d6f7c81406cda4d77dea90e528415");
Example:
If your widget is executed from http://www.tudominio.com/widget.html , you will have to facilitate:www.tudominio.com
Example:
echo "<div id=\"widget\"></div>"; ?>
echo "createWidget('widget');"; ?>
Example:
setInitialView(16.29905101458183, -27.421875,67.7427590666639, 68.5546875);
Example:
echo "addCountryRestriction('es,it,de,fr,us');"; ?>
echo "addZoneRestriction(\"53,54,55\");"; ?>
Please contact us if you want to ask for a Portbooker nautical guide widget