Widget:YaWidget: различия между версиями
Перейти к навигации
Перейти к поиску
Flaco (обсуждение | вклад) Нет описания правки Метка: ручная отмена |
Flaco (обсуждение | вклад) мНет описания правки |
||
| (не показаны 3 промежуточные версии этого же участника) | |||
| Строка 1: | Строка 1: | ||
< | <!-- Yandex.RTB R-A-10417805-1 --> | ||
<div id="yandex_rtb_R-A-10417805-1"></div> | <div id="yandex_rtb_R-A-10417805-1"></div> | ||
<script> | <script> | ||
window.yaContextCb.push(() => { | window.yaContextCb = window.yaContextCb || []; | ||
function renderAd() { | |||
window.yaContextCb.push(() => { | |||
Ya.Context.AdvManager.render({ | |||
"blockId": "R-A-10417805-1", | |||
"renderTo": "yandex_rtb_R-A-10417805-1" | |||
}); | |||
}); | }); | ||
}); | } | ||
// Initial render | |||
renderAd(); | |||
// Set interval for refreshing the ad every 32 seconds | |||
setInterval(renderAd, 32000); | |||
</script> | </script> | ||
Текущая версия от 16:21, 22 июля 2024
<script> window.yaContextCb = window.yaContextCb || [];
function renderAd() {
window.yaContextCb.push(() => {
Ya.Context.AdvManager.render({
"blockId": "R-A-10417805-1",
"renderTo": "yandex_rtb_R-A-10417805-1"
});
});
}
// Initial render renderAd();
// Set interval for refreshing the ad every 32 seconds setInterval(renderAd, 32000); </script>