kp3နည္းပညာ၊၁ဝ၊

Posted by KP-3မိသားစု | Labels: , , ,

ထပ္လာျပန္ၿပီ ဒါေလးကလဲသိၿပီးသားသူေတြမ်ားမယ္ထင္ မိမိရဲ႕posts အေရအတြက္နဲ႔ comentsအေရအတြက္ေလးျပေပးတဲ့codeပါ။
သေဘာက်ရင္ေတာ့ယူသံုးၾကပါ အားလုံးကိုလည္းေလးစားတယ္၊ခ်စ္လည္းခ်စ္တယ္၊ခင္လည္ခင္တယ္ဗ်ာ ။ codeထဲက rulကေတာ႔က်ေနာ့ဟာေပါ႔
အဲဒီေနရာမွာမိမိရဲ႕ rul ထည့္ၾကေနာ္၊ေအာက္ပံု ထည့္နည္းကေတာ့ထံုးစံတိုင္းပါဘဲ။
# Click Layout.

# Click Page Elements.

# Then click Add a Gadget.

# Choose HTML / Javascript.



<script style="text/javascript">

function numberOfPosts(json) {
document.write('Total Posts: <b>' + json.feed.openSearch$totalResults.$t + '</b><br>');
}

function numberOfComments(json) {
document.write('Total Comments: <b>' + json.feed.openSearch$totalResults.$t + '</b><br>');
}

</script>

<ul><li><script src="http://kp3family.blogspot.com/feeds/posts/default?alt=json-in-script&callback=numberOfPosts"></script></li>

<li><script src="http://kp3family.blogspot.com/feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script></li></ul>
<noscript><a href="http://kp3family.blogspot.com" target="_blank">kp3family</a></noscript>

က်ေနာ္ဟာကေတာ့နည္းနည္းေလးဆိုေတာ့ရွက္တယ္ဗ်ာ



Related Post:

0 comments:

Post a Comment