移动互联网站建设,构建自己最出色的wordpress主题,flash网站的制作,十堰新闻转载自:http://www.cnblogs.com/lloydsheng/archive/2010/05/17/1737267.html 写博客也有几年了#xff0c;现在能找到的第一篇博文发布时间是2007年11月11日#xff0c;那还是在百度空间里面的#xff0c;其实更早的是在csai#xff0c;不过帐号#xff0c;密码#xff…转载自:http://www.cnblogs.com/lloydsheng/archive/2010/05/17/1737267.html 写博客也有几年了现在能找到的第一篇博文发布时间是2007年11月11日那还是在百度空间里面的其实更早的是在csai不过帐号密码博客网址全忘记了。而真正来博客园的写博客时间不是很长一直很喜欢这里的氛围。这段时间发现几个在博客园博客中可以使用的小技巧不敢独享介绍给大家。1.订阅菜单订阅对于博客的作用非常重要提供订阅功能有利于让读者获取博客的最新内容几乎所有的博客都提供了订阅功能。如何在更醒目的地方提示读者订阅同时能够便捷的订阅到各大流行RSS订阅网站让每个博主都费了一番心思这里给大家提供一个方法。在“后台管理-设置-公告”添加这段代码。记得将代码中的“http://feeds.feedburner.com/lloydsheng”改为你博客的RSS地址。view plainprint?a hrefhttp://www.zhuaxia.com/add_channel.php?urlhttp://feeds.feedburner.com/lloydsheng target_blank IMG styleMARGIN-BOTTOM: 3px border0 alt抓虾 vspace2 srchttp://img.feedsky.com/images/icon_subshot01_zhuaxia.gif /a br/ a hrefhttp://fusion.google.com/add?feedurlhttp://feeds.feedburner.com/lloydsheng target_blank img styleMARGIN-BOTTOM: 3px border0 altgoogle reader vspace2 srchttp://img.feedsky.com/images/icon_subshot01_google.gif /a br/ a hrefhttp://www.xianguo.com/subscribe.php?urlhttp://feeds.feedburner.com/lloydsheng target_blank IMG styleMARGIN-BOTTOM: 3px border0 alt鲜果 vspace2 srchttp://img.feedsky.com/images/icon_subshot01_xianguo.gif /a br/ a hrefhttp://inezha.com/add?urlhttp://feeds.feedburner.com/lloydsheng target_blank IMG styleMARGIN-BOTTOM: 3px border0 alt哪吒 vspace2 srchttp://img.feedsky.com/images/icon_subshot01_nazha.gif /a br/ a hrefhttp://mail.qq.com/cgi-bin/feed?uhttp://feeds.feedburner.com/lloydsheng target_blank IMG styleMARGIN-BOTTOM: 3px border0 altQQ邮箱 vspace2 srchttp://img.feedsky.com/images/icon_subshot01_qq.gif /a br/ 2.代码高亮代码高亮对于喜欢贴代码的朋友是一个不可少的功能好的代码高亮不仅能使你的文章变得美观也能让读者方便的获取到文章中的代码。我不知道博客园默认提供哪种的代码高亮组件但是我用自己用着舒服的。 这个高亮组件是“dp.SyntaxHighlighter”它原本是一个wordpress插件我将它所有的js文件压缩为一个文件然后只需要在我们博客页面引用一个30多K的js文件就可以了。具体的操作是在“后台管理-设置-页脚Html代码”添加下面一段js代码view plainprint?script typetext/javascript srchttp://files.cnblogs.com/lloydsheng/lighter.js/script script typetext/javascript dp.SyntaxHighlighter.HighlightAll(code); /script 使用这个组件的方法比较简单看下面代码view plainprint?pre namecode class[language]你的代码.../pre。 不同语言的代码language参数不同如果是使用我压缩好的js代码话language参数可以选择sqlcppvbxmlcssjavascriptjavarubypythondephicsharp。一般的博客应该够用了吧。这个方法不限于博客园的博客也不限于dp.SyntaxHighlighter高亮组件你可以根据你的需要去自定义。3.懒人评论看你博客的懒人也许很多想要让他们看完文章后耐心的评论一下估计很难。而你如果又很在乎评论数量的话不妨试试这个方法。在“后台管理-随笔-维护签名”修改默认签名添加下面一段代码view plainprint?div input typebutton namearticle_support value支持/ input typebutton namearticle_pass value飘过/ /div 签名修改完后还需要在“后台管理-设置-页脚Html代码”添加下面一段js代码view plainprint?script languagejavascript $(function(){ $(input[namearticle_support]).click(function(){ $(textarea[classcomment_textarea]).val(文章不错支持一下); PostComment(); }); $(input[namearticle_pass]).click(function(){ $(textarea[classcomment_textarea]).val(飘过~~); PostComment(); }); }); /script 上面2段代码添加完后读者就可以在文章后面只点一次按钮发布评论再懒的读者都能做到吧。4.版权声明写一篇好的文章不容易构思到编写完至少得花去几个小时转载文章人也许不能理解。但很多博主不反对转载只要求注明出处和原文链接。这里提供一个给每篇文章添加原创声明的方法 能给转载文章的人提个醒。修改默认签名添加下面一段代码view plainprint?div idAllanboltSignature p idPSignature styleborder-top: #e0e0e0 1px dashed; border-right: #e0e0e0 1px dashed; border-bottom: #e0e0e0 1px 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: 微软雅黑; font-size:11px; br / 作者a hrefhttp://www.cnblogs.com/lloydsheng/ target_blankLloydSheng/a br / 出处a hrefhttp://www.cnblogs.com/lloydsheng/ target_blankhttp://www.cnblogs.com/lloydsheng//a br /本文版权归作者和博客园共有欢迎转载但未经作者同意必须保留此段声明且在文章页面明显位置给出原文连接否则保留追究法律责任的权利。 br/该文章也同时发布在我的独立博客中-a hrefhttp://lloydsheng.comLoydShengBlog/a。 /p /div 注意请根据你的博客进行相应的修改。5.文章推荐好的文章当然希望大家都能推荐一下这个技巧能让你的文章不会错过任何一个可能推荐的机会。在“后台管理-设置-页脚Html代码”添加下面一段代码view plainprint?script languagejavascript $(document).ready(function(){ $(body).prepend($(#div_digg).css({ position : fixed, right : 0px, bottom : 0px, z-index : 10, background-color : white, margin : 10px, padding : 10px, border : 1px solid #cccccc})); }); /script 注意园友justin提醒对于绝大部分07或07以前的模板无效对于ie6无效如果你正则使用那些模板或者你想让你博客支持ie6(我是不想支持)那么可能需要使用其他方法。转载于:https://www.cnblogs.com/wangshuai/archive/2010/05/18/1738131.html