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: " You say two-level domain name "};(function() { var ds = document.createelement (' script '); true ; = ' Http://static.duoshuo.com/embed.js '; = ' 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" where you need to display the nearest visitor 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
Oh, www.wonima.com.
How to say "recent visitors" JS plugin common code usage method