(轉)快商通與商務通將客人網頁內文本框輸入的內容傳到客服端對話界面顯示


快商通:
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>


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM