2009-04-13

Image

Automatic Thumbnail and Readmore Function

Readmore function is used to cut our post on homepage, post will appear fully when we click readmore link. You can see my post on homepage. It's cut automatically and if we insert image, it appears thumbnail. This is automatic readmore function with thumbnail. We just need to set up our HTML code. How to?

1. Go to "Layout" click "Edit HTML"
2. Tick on "Expand Widget Templates"
3. Find code </head>
4. Insert this javascript under code

Here

Note :

You can cutomize this size

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

5. Find this code

Here

6. Replace with this code below

Here

7. Save


Now you can try to post and it cut automatically.

Note :

Please save javascript , here's the URL, http://cebong.ipit.googlepages.com/read-moreotomatis.js, upload to your own filehosting. I can't guarantee if my bandwidth exceeded :D

or download readmore-otomatis-script here

التعليقات:

  1. :d you should give linkback to re-post

    ReplyDelete
  2. I am impressed when after read your blog.I think useful tips and resources.Thank you.

    ReplyDelete
  3. 1. Go to "Layout" click "Edit HTML"
    2. Tick on "Expand Widget Templates"
    3. Find code
    4. Insert this javascript under code

    3.find code ?????????
    find code what ?

    ReplyDelete

Total Pageviews