Como mudar o idioma atual
Os artigos relacionados a personalização são redigidos para um público técnico com experiência em desenvolvimento web. É necessário ter conhecimento de HTML, CSS e JavaScript.
Arquivo para editar: LanguagesForChatOnlyMode.js
ic_hic_demo_timer = setInterval(ic_hic_demo_timer_checkobject, 100);
function ic_hic_demo_timer_checkobject()
{
if ((ICObject != null) && (ICObject.pMainContentArea != null))
{
clearInterval(ic_hic_demo_timer);
ICObject.LangDivEn = document.createElement("div");
ICObject.LangDivEn.className = "demoButton1";
ICObject.LangDivEn.onclick = function () { ICObject.changeLanguage(0); }
ICObject.LangDivEn.innerHTML = "English";
ICObject.pMainContentArea.appendChild(ICObject.LangDivEn);
ICObject.LangDivRu = document.createElement("div");
ICObject.LangDivRu.className = "demoButton2";
ICObject.LangDivRu.onclick = function () { ICObject.changeLanguage(9); }
ICObject.LangDivRu.innerHTML = "Pусско";
ICObject.pMainContentArea.appendChild(ICObject.LangDivRu);
ICObject.LangDivDa = document.createElement("div");
ICObject.LangDivDa.className = "demoButton3";
ICObject.LangDivDa.onclick = function () { ICObject.changeLanguage(21); }
ICObject.LangDivDa.innerHTML = "Dansk";
ICObject.pMainContentArea.appendChild(ICObject.LangDivDa);
}
}
Arquivo para editar: InstantChat.css
.demoButton1
{
position: absolute;
left: 100px;
top: 60px;
width: 40px;
cursor: pointer;
background-color: green;
z-index: 2000;
}
.demoButton2
{
position: absolute;
left: 140px;
top: 60px;
width: 40px;
cursor: pointer;
background-color: red;
z-index: 2000;
}
.demoButton3
{
position: absolute;
left: 180px;
top: 60px;
width: 40px;
cursor: pointer;
background-color: blue;
z-index: 2000;
}
Article last updated: 27 September, 2022