Say "recent visitors" JS plugin can show the recent visit to your blog and has used to multi-authorized social network account login user picture, the effect as shown.
The following steps are added to the recent visitor JS plugin:
1. Add more common JS code, each page only need to add one time.
<!--more say JS loading start, a page only need to load once--><script type= "Text/javascript" >var duoshuoquery = {short_name: "Your multi-level domain name two"};( function () { var ds = document.createelement (' script '); Ds.type = ' Text/javascript ';d s.async = true; DS.SRC = ' http://static.duoshuo.com/embed.js '; Ds.charset = ' UTF-8 '; (document.getElementsByTagName (' head ') [0] | | document.getelementsbytagname (' body ') [0]). appendchild (DS);}) ();</script><!--say JS loading end, a page only need to load once--
2. add class= "ds-recent-visitors" containers, such as div elements: <div class= "Ds-recent-visitors" in the location where you need to display the most recent visitors ></div>
The list of properties that the container can specify is as follows:
Data-avatar-size= "45"//show guest avatar size
data-num-items= "12"//maximum number of visitors
3. Adjust the CSS style of the container
How to say "recent visitors" JS plugin common code usage method