Powered by Blogger.

Popular Posts

RSS

Blogger မ်ားအတြက္ Comments ဒီဇိုင္းအလန္းေလး


ကိုယ့္ဘေလာ့မွာ ေပးသြားတဲ့ Comment ေတြကို အေပၚလို ဒီဇိုင္းအလန္းေလး ထည့္ထားခ်င္ရင္ေပါ့။

သူငယ္ခ်င္းေတြလည္း ႀကိဳက္ႀကမယ္ထင္ပါတယ္။ ဒီလို ပံုစံ ဒီဇိုင္းေလးကို သံုးတဲ့လူ အရမ္းမ်ားပါတယ္။

ေအာက္က ကုတ္ေလးကို ဘေလာ့ ဆိုဒ္ဘားထဲက  HTML/JavaScript မွာ ထည့္ျပီး Save လုပ္လုိက္ရံုပါပဲ။

 <style type="text/css">
    ul.w2b_recent_comments {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .w2b_recent_comments li {
        background: none !important;
        margin: 0 0 6px !important;
        padding: 0 0 6px 0 !important;
        display: block;
        clear: both;
        overflow: hidden;
        list-style: none;
    }

    .w2b_recent_comments li .avatarImage {
        padding: 3px;
        background: #fefefe;
        -webkit-box-shadow: 0 1px 1px #ccc;
        -moz-box-shadow: 0 1px 1px #ccc;
        box-shadow: 0 1px 1px #ccc;
        float: left;
        margin: 0 6px 0 0;
        position: relative;
        overflow: hidden;
    }

    .avatarRound {
        -webkit-border-radius: 100px;
        -moz-border-radius: 100px;
        border-radius: 100px;
    }

    .w2b_recent_comments li img {
        padding: 0px;
        position: relative;
        overflow: hidden;
        display: block;
    }

    .w2b_recent_comments li span {
        margin-top: 4px;
        color: #666;
        display: block;
        font-size: 12px;
        font-style: italic;
        line-height: 1.4;
    }
    </style>
    <script type="text/javascript">
    //<![CDATA[
        // Recent Comments Settings
        var
     numComments  = 5,
     showAvatar  = true,
     avatarSize  = 60,
     roundAvatar = true,
     characters  = 40,
     showMorelink = false,
     moreLinktext = "More »",
     defaultAvatar  = "http://www.gravatar.com/avatar/?d=mm",
     hideCredits = true;
    //]]>
    </script>
    <script type="text/javascript" src="http://thurainlin89.googlecode.com/files/w2b-recent-comments-with-avatars.js"></script>
    <script type="text/javascript" src="http://mgminzaw.blogspot.com/feeds/comments/default?alt=json&callback=w2b_recent_comments&max-results=5"></script>

အေပၚက ကြ်န္ေတာ့္ဘေလာ့လင့္ေနရာမွာ ကိုယ့္ဘေလာ့လင့္ကို ေျပာင္းထည့္လုိက္ပါ။ numComments = 5, က ေပၚေစခ်င္တဲ့ Comment အေရအတြက္ပါ။ avatarSize = 60, က ပံုဆိုဒ္ပါ။ အႀကီးအေသးကိုယ့္စိတ္ႀကိဳက္ ျပင္ျပီးေရးလိုက္ပါရန္.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comments:

Post a Comment