const imgagesEbpBp800 = [ { targetUrl: 'https://wlodawanet.ebrokerpartner.pl/short/5mm88', imageUrl: 'https://adsrv.ebroker.pl/pp_kreacje/5ZU0Yj.jpg' }, { targetUrl: 'https://wlodawanet.ebrokerpartner.pl/short/5mm8a', imageUrl: 'https://adsrv.ebroker.pl/pp_kreacje/5bBoDC.jpg' }, { targetUrl: 'https://wlodawanet.ebrokerpartner.pl/short/5mm8e', imageUrl: 'https://adsrv.ebroker.pl/pp_kreacje/68UZ0n.gif' }, { targetUrl: 'https://wlodawanet.ebrokerpartner.pl/short/5mm8g', imageUrl: 'https://adsrv.ebroker.pl/pp_kreacje/61B6ca.gif' }, { targetUrl: 'https://wlodawanet.ebrokerpartner.pl/short/5mm8k', imageUrl: 'https://adsrv.ebroker.pl/pp_kreacje/5bg5qF.jpg' }, { targetUrl: 'https://wlodawanet.ebrokerpartner.pl/short/5mm8o', imageUrl: 'https://adsrv.ebroker.pl/pp_kreacje/8USjWg.png' }, { targetUrl: 'https://wlodawanet.ebrokerpartner.pl/short/5mm90', imageUrl: 'https://adsrv.ebroker.pl/pp_kreacje/5LYaLP.jpg' }, { targetUrl: 'https://wlodawanet.ebrokerpartner.pl/short/5mm92', imageUrl: 'https://adsrv.ebroker.pl/pp_kreacje/68S3HB.jpg' }, ] const rebpbp800 = () => { return '
'; }; const renderItem800 = () => { document.querySelectorAll('.ebpbp-800').forEach(item => { const iteration = parseInt(item.getAttribute('data-current')); const index = iteration % imgagesEbpBp800.length; if (typeof imgagesEbpBp800[index] === 'undefined') { return; } item.style.width = '300px'; item.style.height = '250px'; item.querySelector('a').style.display = 'block'; item.querySelector('a').setAttribute("href", imgagesEbpBp800[index].targetUrl); item.querySelector('img').setAttribute("src", imgagesEbpBp800[index].imageUrl); item.setAttribute('data-current', iteration + 1); }) }; const iebpbp800 = () => { renderItem800(); setInterval(() => { renderItem800(); }, 4000); console.log('BannerPool #800 - initialized'); };