ပို႔စ္မ်ားကို အက်ဥ္းခ်ံဳ႕ျခင္း (သို႔) Peek-A-Boo
ပို႔စ္ေတြကို ဘေလာ့မွာ ေဖာ္ျပရတာ တအားရွည္ေနတယ္ဆုိရင္ အက်ဥ္းခ်ံဳ႕ၿပီး ေဖာ္ျပလုိ႔ရတဲ့နည္းေလးပါ။ အက်ယ္ျပန္ၾကည့္လုိ႔လည္းရေအာင္ လုပ္ႏုိင္တယ္။ ေတာ္ေတာ္ အသံုး၀င္တဲ့နည္းေလးပါ။ ကုဒ္ေလးေတြနည္းနည္းေတာ့ ျပင္ရတယ္။ ေအာက္ပါအဆင့္မ်ားအတုိင္း လုပ္ရံုပါပဲ။
Step 0:
Back-up your template before modifying it.
Step 1:
Add the following javascript code to the head of your template. You can place it just above the </head>-tag.
<script type='text/javascript' src='http://www.anniyalogam.com/widgets/hackosphere.js' />
Step 2:
Find the includable named 'post' in your template, and change it so that it is exactly as shown below (the code in red has to be added):
<b:includable id='post' var='post'>
<div class='post'>
<a expr:name='data:post.id'/>
<b:if cond='data:post.title'>
<h3 class='post-title'>
<b:if cond='data:post.url'>
<a expr:href='data:post.url'><data:post.title/></a>
<b:else/>
<data:post.title/>
</b:if>
</h3>
</b:if>
<div class='post-header-line-1'/>
<div class='post-body' expr:id='"post-" + data:post.id'>
<b:if cond='data:blog.pageType == "item"'>
<p><data:post.body/></p>
<b:else/>
<style>#fullpost {display:none;}</style>
<p><data:post.body/></p>
<span id='showlink'>
<p><a expr:onclick='"javascript:showFull(\"post-" + data:post.id + "\");"' href='javascript:void(0);'>Read More...</a></p>
</span>
<span id='hidelink' style='display:none'>
<p><a expr:onclick='"javascript:hideFull(\"post-" + data:post.id + "\");"' href='javascript:void(0);'>Summary only...</a></p>
</span>
<script type='text/javascript'>checkFull("post-" + "<data:post.id/>")</script>
</b:if>
<div style='clear: both;'/> <!-- clear for photos floats -->
</div>
</div>
.... rest of template code ....
Save your template.
Step 3:
In the Settings - Formatting tab go to the bottom and enter the following post-template:
Type your summary here.
<span id="fullpost">
Type the rest of your post here.
</span>
Now every new post you start will have a fullpost-span by default. If your post is short, you can delete the <span>-tags from the post. The post will be displayed in full, and no links with "Read more..." or "Summary only" will be displayed for that post.
How it works (skip this if you don't like tech stuff).
The changes you made to the code make that every post-body consists of at least 3 span's: the fullpost-span that you entered in the post-template, a span for the 'Read more'-link, and a span for the 'Summary only'-link. Because there might be other spans in your post, each of these 3 spans have a unique id ('fullpost', 'showlink' and 'hidelink' respectively).
Source: http://relaxmechanix.blogspot.com/search/label/19%20%20%20Peek-A-Boo%20posts

Thank brother....
အစ္ကိုေရ... အစ္ကိုရဲ့ပို႔စ္ တိုင္းလိုလို မွာ Repeat ၿဖစ္ေနတယ္။အဲဒါဘာလို႔လည္းဗ်။
Sorry ေ၀ဟင္ေရ ... အစ္ကိုျပင္တဲ့ထဲမွာ ကုဒ္တစ္ခု ဖ်က္ဖို႔က်န္သြားလုိ႔ကြာ ... အခုေတာ့ အိုေကသြားပါၿပီ .. ေက်းဇူးပါကြာ :)
Post a Comment