(转)快商通与商务通将客人网页内文本框输入的内容传到客服端对话界面显示

快商通:
KS.openChatWin
openKSDefinedChatWin
<!doctype html>
<html>
<head>
<meta charset="gb2312">
<title>快商通</title>
<style>
*{ margin:0;padding:0;}
</style>

</head>

<body>

<div><textarea class="wtk" id="wtk" rows="5" maxlength="300" onkeyup="checkLength(this)" accesskey="1" tabindex="11" placeholder="您可选择上述症状直接咨询在线医生,或者在输入框中描述您的问题。专业为您解答,并严格保密。"></textarea></div>

<div class="kswz_btn"><a href="javascript:void(0)" onclick="swtCon()" id="sendCon">提交</a></div>

<script type="text/javascript">
//发送至后台问题标识
function swtCon(){
var insertText=document.getElementById("wtk").value;
if(insertText||insertText!=""){
KS.openChatWin({    
sText:insertText,
cv:insertText
});
}
else alert("请先填写您的问题哦!");document.getElementById("wtk").focus();
}
</script>

 

<!--快商通官方链接-->
<script type="text/javascript" src="https://test.kuaishang.cn/bs/ks.j?cI=168168&fI=1136" charset="utf-8"></script>


</body>
</html>
商务通:
<!doctype html>
<html>
<head>
<meta charset="gb2312">
<title>商务通</title>
<style>
*{ margin:0;padding:0;}
</style>

</head>

<body>


<textarea id="wtk"></textarea>

<input type="button" id="LR_button1" value="提交" onclick="LR_submit1(1);" />
 

<script language="javascript">
function LR_submit1(chat) {
var insertText = LR_GetObj('wtk').value;
if(insertText||insertText!=""){
LR_explain='来自网页内嵌文本框的对话,客人输入的内容如下:'+insertText;
LR_msg=insertText;
openZoosUrl(chat?'chat':'sendnote');
}else{
alert("请先填写您的问题哦!");document.getElementById("wtk").focus();
}
}
</script>


<!--商务通官方链接-->
<!--<script language="javascript" src="http://testserver.zoosnet.net/JS/LsJS.aspx?siteid=lza69557093&lng=cn"></script>-->


</body>
</html>

猜你喜欢

转载自www.cnblogs.com/linyusong/p/9266892.html