Re: Embeded Chat Window

  •  11-25-2013, 1:32 PM

    Re: Embeded Chat Window

    Hi QwertyMC,

     

    Myabe you can show/hide the embed chat control like the code below by javascript. Or you can try use the tab control. put the embed chat control into another tab, so the user can show/hide the chat by the tab.

     

    1. <div id="div_chat" style="visibility: hidden">  
    2.                <CuteChat:EmbedChannel ID="EmbedChannel1" runat="server"></CuteChat:EmbedChannel>  
    3.            </div>  
     
    1. <script type="text/javascript">  
    2.     function openChat() {  
    3.         var div_chat = document.getElementById("div_chat");  
    4.         var input1 = document.getElementById("input1");  
    5.         if (div_chat.style.visibility == "hidden") {  
    6.             div_chat.style.visibility = "visible";  
    7.         }  
    8.         else {  
    9.             div_chat.style.visibility = "hidden";  
    10.         }  
    11.         if (input1.value == "show") {  
    12.             input1.value = "hide";  
    13.         }  
    14.         else {  
    15.             input1.value = "show";  
    16.         }  
    17.   
    18.     }  
    19. </script>  

    Regards,
     
    Ken 
View Complete Thread