How to say "recent visitors" JS plugin common code usage method

Source: Internet
Author: User

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:// ';     = ' 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


How to say "recent visitors" JS plugin common code usage method

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: 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.