Bismillah, Alhamdulillah

Skip to Content

Table of contents and Accordion for Blogger

May 15th, 2010

Bismillah
Allahmdulillah, Alhamdulillah, Alhamdulillah
Usually we have so many posts in our blog and if we used TOC it will be very long. If we have very long TOC, it make visitors difficult to read our posts. To make it easy to read I made modification from previous script Table of Contents for Blogger new style and I used Accordion.
Feature of this script :

  1. Accordion effect
  2. Show and hide effect
  3. CSS 3
  4. Automatic add jquery
  5. Different color for content
  6. Different style for open and close
  7. Auto Sort the title
  8. Add New!! for 10 newest entry

How to use is very easy. Create Static Page .
Put the script in Html mode


<link href="http://abu-farhan.com/script/acctoc/acc-toc.css" media="screen" rel="stylesheet" type="text/css"></link>
<script src="http://abu-farhan.com/script/acctoc/daftarisiv2-pack.js"></script>
<script src="http://www.oblo.web.id/feeds/posts/summary?max-results=1000&alt=json-in-script&callback=loadtoc"></script>
<script type="text/javascript">
var accToc=true;
</script>
<script src="http://abu-farhan.com/script/acctoc/accordion-pack.js" type="text/javascript"></script>

Replace www.oblo.web.id with your blog name
Demo

Demo

Below images are how to create page in blogger.



Categories: Blogger Tricks, Table of contents

Tags: ,

Abu Farhan

I'm an Owner of this blog and it's always been a passion of mine to write about Blogger. I like to make original script for blogger. I also run the awesome Website at The Best Lists.

Enjoyed this Post?

Subscribe to our RSS Feed, Follow us on Twitter or Comments RSS Feed

Donate towards my web hosting bill!

Trackback
Leave a response

157 Responses to “Table of contents and Accordion for Blogger”

  1. [...] car for sale uk trader for cars van trader find a car car find used vans trader car car and trader used cars uk uk used cars [...]

  2. gofree says:

    I can get it working : http://www.movieloo.info/2010/06/table-of-contents.html
    but all the contents are loading without any toggle like one in the demo.

    M I missing anything?

  3. kanca says:

    Boz aq mau tanya… aq sdh nyoba langkah di atas tapi koq labelnya ga ada backgroundnya… kenapa ???

  4. Aakash says:

    your script in not working for me its displays all the tabs opened.. no sliding effect

  5. APAN says:

    tq for this tutorial…i’m satisfied! huhu…

  6. العاب says:

    excellent widget

    how to change styling of this widget

    how to exclude certain labels

    thank you

  7. uki says:

    kalau ganti gambar background biar tidak oranye gimana gan? Bisa gak?

  8. khasan says:

    subbekhanallah, daftar isinya bgus bgt mas….
    mkasih,,,,

  9. JOSE EDNALDO says:

    Good night,

    Great job! I just insert into my blog.

    And once again congratulations!

  10. Lucas says:

    Kok gag bisa di aplikasikan ke blog saya yah Pak?
    salahnya dimana nih?? jadi bingung….
    طبخ
    autotrade uk

  11. Presently I must decide whether to keep reading of the site, or go to some other site.

  12. shree says:

    dude how to change the colour for table of content please tell me
    http://smahkin.blogspot.com/p/sitemap.html

  13. Carlos says:

    hi abu, first thanks for the script

    i have a little question
    can we use this widget to diplay posts only from selected catagories(label)?

    if yes, can you help me in doing this?

  14. Ganz says:

    tenkz.,.
    ur idea’s very helpful
    =)

  15. igor says:

    Hi abu.
    Can I change the background color on links?
    Is it inside “css”?
    thank you

  16. Abida says:

    Hi abu
    yes Can we use widget to display posts only from selected categories(label)?
    Please help me related this, i ll be really thankful to you.

    thank you

  17. edin says:

    Esselamu alejkum

    May Allah reward you for all this things.

    Auto Sort the title by alphabetical order is not suitable for me, I want to sort by date of publish. How can I do?

    Add New!! for 10 newest entry – I don’t want this option. How can I change this.

    It is important to know that I am a beginner in blogging.

    Thank you!

  18. Amit says:

    Superb TOC, Thanks a lot, i added a new color to my TOC page :)

  19. gaung says:

    kami da letak dah sitemap ni kat tempat kami…terima kasihh mantapppp!!!!

  20. vern says:

    maksimum post yang tampil berapa?
    soalnya aku pake toc yg lama
    disetingannya aku tulis 1000
    yg tampil cuma 500 post

  21. useful info …. thank you so much … I’m really excited …successfully in my blog…you can see in http://id290.blogspot.com/

  22. Shan says:

    Hi Abu, your ToC is superb! Thanks.
    It would be even better with the following :
    (1) All labels appear condensed; currently the first label appear expanded.
    (2) It open on the same window/tab; currently it opens a new window/tab.
    (3) When you expand a label, and click on an item, it open a new window/tap; currently it displays the contents of the selected post on the same window, so you loose the ToC and you have to start all over again.

    Otherwise, it is brilliant …

  23. Bagus ni….ini yg saya cari mulai kemarin-kemarin….thank’s gan. udah g’ tahan mau menuju ke TKP ah..

  24. oneclickdd says:

    It doesnt show complete posts for labels. any solution?

  25. wasimun says:

    makasih pak atas semuanya

  26. ARC says:

    SALAM YA ABU.
    opss sory for the capital blocks. Do you have any screenshot of how this thing will look like?

  27. Thanks to LOL1ds
    now it works :D

    You can see it on http://simbya.blogspot.com/p/contents.html

    Now I’m so grateful to both of you… :D

  28. I think it’s a great widget/script. but Couldnt use it on my blog, only appears in ‘Draft’…please help…
    Is it because of my template??

  29. kentshin says:

    Hi Abu, thanks for this great tutorial. I am just a newbie. I’m here just want to inform you that I have implemented this stuff on my blog. And it works fine (in Firefox and Opera). But in IE (I use IE 8) and Google Chrome (v.10.0.648.151), it doesn’t works properly. Do You have any suggestion/idea to fix this bug?.
    Once again, thanks for all of your efforts you have provided to us.

  30. OSWALD says:

    Thank you abu-Farhan

    But it does not work in my blog
    If You Saw please my blog

    S.O.S.

    I want your opinion.

    THANK YOU.

    Oswald

  31. cory says:

    hi abu-farhan,

    thanks for the useful post. this is a great way to display the table of contents.

    cory

  32. Ali says:

    Thank you abu-farhan
    but it doesn’t work in my blog i have Problem with
    jquery I can not deal with it.
    Please see my blog i have a Problem with slidshoo doesn’nt work .

    I want your opinion.

    Salam

  33. Jeff says:

    Bismillah..
    Assalamu Alaikum…
    Alhmadulilah…
    Sudah berhasil mas di blog saya kang…
    Semoga tetap istiqamah…
    Amin…

  34. Thanks for these useful tutorials in this site. I’ll try them all and use them. Thanks a lot! May Allah bless you and always guide you to most right way.

  35. LOL1ds says:

    mas, sorry kalo ada ralat dikit pada type sedikit error, pesan : tag link tdk bisa di execut
    <link href="http://abu-farhan.com/script/acctoc/acc-toc.css&quot; media="screen" rel="stylesheet" type="text/css"></link>

    apa tidak seperti ini,type :

    <script src="http://abu-farhan.com/script/acctoc/acc-toc.css&quot; media="screen"
    rel="stylesheet" type="text/css"></script>

    maaf jika saya juga salah. tapi saya coba seperti itu berhasil. trimkasih.

  36. echa says:

    it doesn’t work in my blog.
    but i really want use this stuff.
    please help me to make it work, email me .. thanks.

  37. compinets says:

    Hello abu-farhan, thanks before for all your tutorial..it really help me much..i have a question for you.. i used this table of content script since long time ago..and it working perfectly..but when i added a read more script to my template..it wouldn’t working anymore…this the script..

    <script type=’text/javascript’>
    summary_noimg = 260;
    summary_img = 180;
    img_thumb_height = 100;
    img_thumb_width = 120;
    </script>
    <script src=’http://barep.net84.net/javaskrip/summarypost.js’ type=’text/javascript’/>
    <b:if cond=’data:blog.pageType != "item"’>
    <div expr:id=’"summary" + data:post.id’><data:post.body/>
    </div>
    <script type=’text/javascript’>createSummaryAndThumb("summary<data:post.id/>");</script>
    <span class=’rmlink’ style=’float:right’><a expr:href=’data:post.url’>Selengkapnya..</a></span></b:if><b:if cond=’data:blog.pageType == "item"’><data:post.body/></b:if>

    i really appreciate if you reply to muy email che6vara@gmail.com

  38. yonmenclub says:

    Thanks Abu,
    I’ve used this script in our blog, but when do you think the “new” label will be removed automatically ? how to reducing this ?
    But thanks a lot anyway..It’s a great script bro !! You always found a new great one… :)

  39. Hi! When using this I get this message “Stop running this script? A script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer might become unresponsive.” I’m running IE8. For now I’ve removed all the code.

    Take Care,
    Peter

  40. Ayush Chand says:

    Since the TOC is made up of java script, can google index these links??

  41. Songsclub says:

    Wow, very nice widget. It’s working perfectly on my blog. Thank you very very much abu.

  42. ali says:

    Thank you very much! Excellent work

  43. terimakasih scriptnya mas, very nice!
    hehehehe :D

    cobaaaa aaahhh :D

  44. Junaid says:

    Salam, brother

    i have a little question
    can we use this widget to diplay posts only from selected catagories(label)?

    if yes, can you help me in doing this?

  45. noir says:

    salam abu

    excellent widget

    how to change styling of this widget

    how to exclude certain labels

    thank you

  46. Helena says:

    Thank you very much! Excellent work, I use it in my blog.

  47. Rpp Silabus says:

    Kok gag bisa di aplikasikan ke blog saya yah Pak?
    salahnya dimana nih?? jadi bingung….

  48. linda says:

    blognya keren banget mas.. msh newbie nih, lom ngerti script

Leave a Reply


− one = zero

Dbestlists Dbestlists

Copyright 2009 - 2010  Choen