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

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.