For websites, we need to add the customer service function, but the website is an English website.JSCodeBecause they both contain Chinese characters or have copyright information about them, we have to stop using the simplest method to implement online customer service as shown below:
The specific code is to reference twoJSFile
: <SCRIPT type = "text/JavaScript" src = "JS/jquery. js"> </SCRIPT>
<SCRIPT type = "text/JavaScript" src = "JS/include. js"> </SCRIPT>
I also mentioned another technique:
Asp.netMediumResponse. writefile("Static page file name"), this method can reduce a lot of operations, directly add at the bottom of your page file<%
Response.writerfile(“float.html ") %>. At the same time, the online customer service can be displayed on multiple pages, but you must pay attention to the path problem. Otherwise, it will not be displayed normally.
The encoding method is also worth noting. The default Dreamweaver encoding method is gb2312, while some JS files use UTF-8. Therefore, sometimes JS errors are reported on the page due to the encoding method, prompt that no object is found. At this time, you can check the page encoding method. This problem should be more common when developing non-Chinese websites.
Note that the referencedJSThe file must also be added to the page. The page implementation result code file is downloaded here: feellife.net simple online customer service source code