arrow_back_iosQuestions
help

Can I use multiple widgets on the website?

check_circle
Yes, you can use multiple widgets on your website.
When placing multiple widgets on the same page, make sure to set different ids for <DIV> elements in the widget codes. You should also use same ids in the JS code.
Example of the code for two widgets on the page:
<div id="ID1"></div>
<div id="ID2"></div>

<script type='text/javascript'>
(function () { var d = document; var w = window;
function l() {
var s = d.createElement('script'); s.type = 'text/javascript'; s.async = true;
s.src = 'https://public.bukza.com/api/script/generate/2/1104/ID1?t=' + (new Date().getTime());
var ss = d.getElementsByTagName('script')[0];
ss.parentNode.insertBefore(s, ss);
}
if (d.readyState == 'complete') {
l();
} else {
if (w.attachEvent) {
w.attachEvent('onload', l);
} else {
w.addEventListener('load', l, false);
}
}
})();
</script>

<script type='text/javascript'>
(function () { var d = document; var w = window;
function l() {
var s = d.createElement('script'); s.type = 'text/javascript'; s.async = true;
s.src = 'https://public.bukza.com/api/script/generate/2/1105/ID2?t=' + (new Date().getTime());
var ss = d.getElementsByTagName('script')[0];
ss.parentNode.insertBefore(s, ss);
}
if (d.readyState == 'complete') { l();
} else {
if (w.attachEvent) {
w.attachEvent('onload', l);
} else {
w.addEventListener('load', l, false);
}
}
})();
</script>
You can check how this code works online. Paste it after the <body> tag in the JS BIN.
Didn't find the answer to your question?
Ask it to us on
mail_outline support@bukza.com