Clicking on the code that Baidu likes to display content

time:15-06-02 forum:HTML web page, JS language and code
  http://www.veryhuo.com/a/view/51956.html

since Baidu launched Baidu sharing and Baidu likes, basically everyone has started to use it, after all, everyone wants their site to be good for the search engine. And the impression and sharing on the search engine results page can be reflected. But in general, unless the contents are attractive enough, or contain enough content, the reader will click on that favorite button. For some readers who are only just for things, he likes the next address in the article. The source code recommended to you today requires the user to click the like button to display the content, and the source code does not affect the search engine's normal grasp of the web page.

[code].lt; script id=.quot; bdlike_shell.quot;.Gt;.Lt; /script.gt;
.lt; script.gt. Aidu.com/static/js/like_shell.js? T=.quot; new Date ().GetHours ();
.lt; /script.gt;
.lt; script type=.quot. FFAD50; border-style:dotted; padding-top:3px; padding-left:3px; padding-right:3px; padding-bottom:3px; width:400px; text-align:center; \.quot;.Gt; the following content requires you to click the like button below to display. .lt; div style=\.quot; margin:auto; \.quot; class=\.quot; bdlikebutton\.quot;.Gt;.Lt; \div.gt;.Lt; /div.gt; > $>.
>);
.lt; /script.gt;
.lt;! - like after the display of content code --.gt; [/code]

effect is the effect above, clicking on the above like will naturally display the code, this code is based on jQuery to run Oh, so you also need to correctly introduce the jQuery plug-in. So.

[code].lt; div class=.quot; likeURL.quot;.Gt; hidden content.Lt; div.gt; [/code]
wrap up the hidden contents with a class likeURL.

prev:JavaScript timing display ad code sharin... next:Ji'nan network police began to open law ...
post comment
Notice



approved   Reminder: Taobao's new scam, do not ...   Recruitment of job search websites i...   Ji'nan related blog collection   Nine cases of individual advisable h...   Ten big springs in Ji'nan
rand   JS implements a picture to show the ...   JS Window.Open open window detailed ...   Utility tools or components, framewo...   Prevent other people from saving web...   5 debug skills necessary for JavaScr...
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com