Come recuperare le impostazioni della lingua corrente
Gli articoli sulla personalizzazione sono rivolti a un pubblico tecnico con esperienza nello sviluppo Web. È necessaria la conoscenza dei linguaggi HTML, CSS e JavaScript.
File da modificare: LanguagesForChatOnlyMode.js
var ic_hic_demo_timer = null;
ic_hic_demo_timer = setInterval(ic_hic_demo_timer_checkobject, 100);
function ic_hic_demo_timer_checkobject()
{
if ((ICObject != null) && (ICObject.pLanguageSelection_a != null))
{
clearInterval(ic_hic_demo_timer);
ICObject.MyCustomDiv = document.createElement("div");
ICObject.MyCustomDiv.className = "demoButton";
ICObject.MyCustomDiv.onclick = function () { ic_hic_demo_getLang(); }
ICObject.MyCustomDiv.innerHTML = "Get
Lang";
ICObject.pMainContentArea.appendChild(ICObject.MyCustomDiv);
}
}
function ic_hic_demo_getLang()
{
for (var key in oLangNameArray)
{
if (oLangNameArray[key] == ICObject.pLanguageSelection_a.innerHTML)
alert(key + ", " + oLangNameArray[key]);
}
}
File da modificare: InstantChat.css
.demoButton
{
position: absolute;
left: 94px;
top: 32px;
width: 50px;
height: 43px;
text-align: center;
cursor: pointer;
background-color: red;
z-index: 2000;
}
Note: Per informazioni sulle lingue supportate dalla chat istantanea, vedere Come tracciare la lingua dei clienti con il modulo Canale.
Article last updated: 27 September, 2022