Implementation of a simple online customer service (floating on the left side of the website and scrolling along with the page)

Source: Internet
Author: User

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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.