Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
263 views
in Technique[技术] by (71.8m points)

javascript - Inline chat window opens behind website text

I've done a few searches, and I think I found the answer here: Pop-up content sometimes appearing behind main content, but I don't know how to implement any of the solutions into my code (which is from a third party application). I've asked them but their support isn't the greatest. I'm hoping someone can point me in the right direction.

<script type="text/javascript" src="https://secure.logmeinrescue.com/InstantChat/InstantChat.aspx"> 
</script>
<script type="text/javascript">
    function loadInstantChat(){
        var ICLoader = new RescueInstantChatLoader();
        ICLoader.ICContainer = "ICContainer";
        ICLoader.HostedCSS = "https://secure.logmeinrescue.com/InstantChat/Standard/InstantChat.css";
        ICLoader.HostedLanguagesForChatOnlyMode = 
"https://secure.logmeinrescue.com/InstantChat/LanguagesForChatOnlyMode.js";
        ICLoader.HostedLanguagesForAppletMode = 
"https://secure.logmeinrescue.com/InstantChat/LanguagesForAppletMode.js";
        ICLoader.EntryID = "deleted for public view";
        ICLoader.Name = document.getElementById("Name").value; /* optional */
        ICLoader.Tracking0 = ""; /* optional */
        ICLoader.Language = ""; /* optional */
        ICLoader.PostMessageTargetOrigin = ""; /* optional (For implementation details, see the 
LogMeIn Rescue Customization and Integration Guide) */
        ICLoader.HostedErrorHandler = function(ErrorName){} /* optional */
        ICLoader.Start();}
    function handleRebootOrRefresh(){
        if ((window.location + "").indexOf("rescuewebsessionid") != -1) 
{document.getElementById("ICContainer").style.display=""; loadInstantChat();} /* optional */
        if (window.location.hash.length == webSessionIdLength + 1) 
{document.getElementById("ICContainer").style.display=""; loadInstantChat();} /* optional */
    }
</script>
</head>
<body onload="handleRebootOrRefresh();">
<table>
    <tr><td>Please enter your name: </td><td><input id="Name" type="text" maxlength="64" /></td></tr>
</table>
<input type="button" value="Channel 01 - Instant Chat Configuration" 
onclick="document.getElementById('ICContainer').style.display=''; loadInstantChat();" />
<div id="ICContainer" style="position: absolute; left: 0px; top: 0px; width: 400px; height: 500px; 
display: none"></div>
</body>
</html>
question from:https://stackoverflow.com/questions/65922455/inline-chat-window-opens-behind-website-text

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...