| Authour: |
Others |
| UpdateTime: |
2015-04-25 08:56:54 |
| Friendly Link: |
Http://wenku.baidu.com/link?url=sk0Zj_vntZgXAMa_DJLfQuJ3UPzlw8FCB0q0mkJNt0n_ 5b2pyez0flzih-rij5pmv51hv9-svlpyaavdzuplydnyen1ortbcreghizneza_m |
Tips Directory:
1. Subscription Menu
2. Code highlighting
3. Lazy People review
4. Copyright Notice
5. Article recommendation
Write blog also has a few years, now can find the first post published time is November 11, 2007, that is still in Baidu space inside, actually earlier is in Csai, but account number, password, blog url all forgot. And really to Blog Park blog Time is not very long, has been very fond of the atmosphere here. This period of time found a few in the blog Park blog can be used in small skills, dare not exclusive, introduced to everyone.
1. Subscription Menu
Subscriptions are important for blogging, providing subscription features that help readers get the latest content from blogs, and almost all blogs offer subscription functionality. How to prompt readers in a more prominent place to subscribe, but also easy to subscribe to the popular RSS subscription site, so that each blogger has a mind, here to provide a way.
Add this code in the "Background management, settings-and Announcements" section. (Remember to change the "Http://feeds.feedburner.com/lloydsheng" in your code to the RSS address of your blog).
<a href= "Http://www.zhuaxia.com/add_channel.php?url=http://feeds.feedburner.com/lloydsheng" target=_blank>
</a>
<br/>
<a href= "Http://fusion.google.com/add?feedurl=http://feeds.feedburner.com/lloydsheng" target=_blank>
</a>
<br/>
<a href= "Http://www.xianguo.com/subscribe.php?url=http://feeds.feedburner.com/lloydsheng" target=_blank>
</a>
<br/>
<a href= "Http://inezha.com/add?url=http://feeds.feedburner.com/lloydsheng" target=_blank>
</a>
<br/>
<a href= "Http://mail.qq.com/cgi-bin/feed?u=http://feeds.feedburner.com/lloydsheng" target=_blank>
</a>
<br/>
2. Code highlighting
Code highlighting for people who like to paste code is an essential feature, good code highlighting not only makes your article beautiful, but also allows the reader to easily get the code in the article. I don't know what kind of code highlighting component is available by default in the blog park, but I use my own comfortable.
This highlighted component is "DP." Syntaxhighlighter ", it was originally a WordPress plugin, I will all of its JS files compressed into a file, and then only need to refer to our blog page a more than 30 K of the JS file can be.
The specific action is to add the following section of the JS code in the "Background management, settings-and footer HTML code":
<script type= "Text/javascript" src= "Http://files.cnblogs.com/lloydsheng/lighter.js" ></script>
<script type= "Text/javascript" >
Dp. Syntaxhighlighter.highlightall (' Code ');
</script>
The method of using this component is relatively simple, see the following code:
<pre name= "Code" class= "[Language]" > Your code ...</pre>.
Different language code language parameters, if the use of my compressed JS code, language parameters can choose Sql,cpp,vb,xml,css,javascript,java,ruby,python,dephi,csharp. The general blog should be enough.
This method is not limited to Blog Park blog, nor is it limited to DP. Syntaxhighlighter highlighting components, you can customize them according to your needs.
3. Lazy People review
Look at your blog lazy people may be a lot, want to let them read the article after the patient comment, it is difficult to estimate. And if you care about the number of comments, you might as well try this method.
To modify the default signature, add the following snippet of code to the maintenance signature, "admin
<div>
<input type= "button" Name= "Article_support" value= "Support"/>
<input type= "button" Name= "Article_pass" value= "Drift over"/>
</div>
After the signature has been modified, you will also need to add the following section of the JS code in the "Background management--set-up footer HTML code":
<script language= "JavaScript" >
$ (function () {
$ ("Input[name=article_support]"). Click (function () {
$ ("Textarea[class=comment_textarea]"). Val ("Good article, support!") ");
Postcomment ();
});
$ ("Input[name=article_pass]"). Click (function () {
$ ("Textarea[class=comment_textarea]"). Val ("Drifting over ~ ~");
Postcomment ();
});
</script>
When the above 2 pieces of code are added, the reader can post a comment only once at the end of the article, and then the lazy reader can do it.
4. Copyright Notice
Writing a good article is not easy, the idea to write, at least to spend a few hours, reprinted article people may not understand. But many bloggers do not object to the reprint, only to indicate the source and the original link. Here's a way to add an original statement to each article,
can give the person who reproduced the article to wake up.
Modify the default signature and add the following snippet:
<div id= "Allanboltsignature" >
<p id= "psignature" style= "Border-top: #e0e0e0 1px dashed; Border-right: #e0e0e0 1px dashed; Border-bottom: #e0e0e01px dashed; Border-left: #e0e0e0 1px dashed; padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:60px; Background:url (http://images.cnblogs.com/cnblogs_com/lloydsheng/239039/o_copyright.gif) #e5f1f4 no-repeat 1% 50%; font-family: Microsoft ya black; font-size:11px; " >
<br/>
<ahref= "http://www.cnblogs.com/lloydsheng/" target= "_blank" >LloydSheng</a>
<br/>
Source: <ahref= "http://www.cnblogs.com/lloydsheng/" target= "_blank" >http://www.cnblogs.com/lloydsheng/</a >
<br/> This article copyright belongs to the author and the blog Garden altogether, welcome reprint, but without the author's consent must retain this paragraph statement, and in the article page obvious position gives the original text connection, otherwise reserves the legal responsibility the right.
<br/> This article is also published in my standalone blog-<ahref= "http://lloydsheng.com" >LoydShengBlog</a>.
</p>
</div>
Note: Please make the appropriate changes according to your blog.
5. Article recommendation
The good article certainly hoped that everybody can recommend, this technique can let your article not miss any possibility to recommend the opportunity.
Add the following snippet of code to the HTML code, settings-and footer, background management
<script language= "JavaScript" >
$ (document). Ready (function () {
$ ("Body"). Prepend ($ ("#div_digg"). CSS ({
"Position": "Fixed", "right": "0px", "bottom": "0px", "z-index": "Ten", "Background-color": "White", "margin": "10px", " Padding ":" 10px "," Border ":" 1px solid #cccccc "});
});
</script>
Conclusion
5 Tips for you to introduce the garden friends, these tips are just for everyone's blog icing on the cake. The most important thing is the content of the blog, that is the value of the blog.
(go: Pro-Test subscription menu) 5 tips for playing a blog park