Friday, January 21, 2011

Blog မွာ Read More Function လုပ္နည္း

Follow steps:
1. Go to "Design" click "Edit HTML"
2. Tick on "Expand Widget Templates"
3. Find this code
<data:post.body/>

4. Replace with this code below
<script type='text/javascript'>
summary_noimg = 430;
summary_img = 340;
img_thumb_height = 100;
img_thumb_width = 120;
</script>
<script src='http://blogergadgets.googlecode.com/files/excerpt.js' type='text/javascript'/>
<b:if cond='data:blog.pageType != &quot;item&quot;'>
<div expr:id='&quot;summary&quot; + data:post.id'><data:post.body/></div>
<script type='text/javascript'>createSummaryAndThumb(&quot;summary<data:post.id/>&quot;);</script>
<span class='rmlink' style='float:right'><a expr:href='data:post.url'>Read more</a></span>
</b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'><data:post.body/></b:if>

5. Save / Check your blog

clarification code above:
summary_noimg = 430; is post cut height without image
summary_img = 340; is post cut height with image
img_thumb_height = 100; is thumbnail image height
img_thumb_width = 120; is thumbnail image width

Leave a Reply

Thanks for your comments ...

 
 

---ေတာင္းပန္စကား ---

ငါတတ္ငါေတာ္ ငါအေက်ာ္ဟု၊ ငါေသာ္စိတ္ထား မရွိျငားလည္း၊ ငါကားငယ္ရြယ္ ဥာဏ္မၾကြယ္၍၊ အဘယ္သုိ႔လွ်င္ အမွားစင္အံ့၊ အၾကင္သူေတာ္ ပညာေက်ာ္သည္၊ ခၽြတ္ေခ်ာ္လြဲမွား ငါ့စကားကုိ၊ စိတ္ထားေဖြးျဖဴ ျပင္ေတာ္မူ။ (ရွင္အဂၢဥာဏ) ဆံုဆည္းရာ မွာလည္း ဆံုေတြ႔ႏိုင္ပါတယ္..။ https://www.facebook.com/meeting2gt

About Me

My Photo
Hello there ! I'm rather new to blogging & collecting favorite posts.* (Mai Occupation :*Teaching Internet, Basic Computer & Web Design & then working in MIT*) > I'm 40% friendly > 30% geek > 20% crazy > 10% emo. *What u see may not be what u get* (: Feel free to add me as a friend. BB, CUL ....

Labels

Blogger (10) Computer (9) Dahama (21) Double Crane (1) Download (1) Ebook (6) Essay (6) Favourite (9) Gardars (1) Health (19) Internet (18) Knowledge (37) Learning English (4) Mobile (4) Poem (6) Story (2)

Followers