First, after registering an account with CNZZ, he will give you the following code:
<script type= "Text/javascript" >var Cnzz_protocol = (("https:" = = Document.location.protocol)? "https://": "http: ");d Ocument.write (unescape ("%3cspan id= ' cnzz_stat_icon_xxxxxxxxxx '%3e%3c/span%3e%3cscript src= ' "+ cnzz_protocol + "S19.cnzz.com/z_stat.php%3fid%3d1252929438%26show%3dpic1 ' type= ' text/javascript '%3E%3C/script%3E")); </ Script>
The meaning of this JS code is that
The variable cnzz_protocol is defined according to the transport protocol used by the current page, or cnzz_protocol= "https://" if it is the HTTPS protocol, otherwise = "http://".
document.write () This command simply prints the specified text content onto the page.
The unescape () function decodes a string encoded by escape (). Webmaster Tools, I am here to decode, we can Baidu "unescape decoding", there are many online decoding tools.
By decoding the unescape () function, we can get:
"<span id= ' cnzz_stat_icon_1252929438 ' ></span><script src= '" + Cnzz_protocol + "S19.cnzz.com/z_ Stat.php?id=xxxxxxxxxx&show=pic1 ' type= ' text/javascript ' ></script> '
he creates a span element and adds a script.
When the script finishes executing, the page becomes the following
<span id= "cnzz_stat_icon_1252929438" > <a href= "http://www.cnzz.com/stat/website.php?web_id= Xxxxxxxxxx "target=" _blank "title=" webmaster Statistics "> </a></span><script src= "http://s19.cnzz.com/z_stat.php?id=xxxxxxxxxx& Show=pic1 "type=" Text/javascript "></script><script src=" http://c.cnzz.com/core.php?web_id=xxxxxxxxxx &show=pic1&t=z "charset=" Utf-8 "type=" Text/javascript "></script>
on the principle of its flow statistics, you can see this article:CNZZ website Traffic Statistics principle Analysis
Cnzz code add element to page