Кнопка звонка или стороннего сервиса.Вернуться в меню.

В окно чата возможно встроить сторонние кнопки, например кнопку звонка сервиса Zingaya.

Для этого необходимо добавить в код страницы следующее:

  1. <style type="text/css">
    #red-phone {
    position: absolute;
    top: 22px;
    z-index: 99;
    width: 152px;
    text-align: center;
    color: #59C;
    line-height: 18px;
    text-decoration: underline;
    cursor: pointer;
    right: 35px;
    display:none;
    }
    #rh-copy {
    display: none !important;
    }
    a.zingaya_button1370948929215 {
    display: block;
    width: 180px;
    height: 36px;
    background: url(images/callbutton.png) no-repeat;
    }
    a.zingaya_button1370948929215:hover {
    background-position: 0 -36px;
    }
    a.zingaya_button1370948929215:active {
    background-position: 0 -72px;
    }
    </style>
    <script type="text/javascript">
    var rhandl = setInterval(function() {
    if (RedHelper && RedHelper.started) {
    clearInterval(rhandl);
    onStart();
    }
    }, 200);
    function onStart() {
    var el = document.getElementById("rh-chat");
    var button = document.getElementById("red-phone");
    el.appendChild(button);
    button.style.display="block";
    }
    </script>

  2. в тело страницы (перед скриптом чата RedHelper):

    <div id="red-phone">КОД_КНОПКИ_СЕРВИСА_ZINGAYA</div>

Посмотреть исходный код примера можно нажав Ctrl+U (браузер Chrome) или выбрав в меню браузера опцию "Просмотреть исходный код".
Запустить консоль - F12 (браузер Chrome) или "Инструменты разработчика".