Welcome to My Blog. If you are a New Visitor Please Subscribe For Latest Updates!

Beautiful Table of Contents(TOC) for Blogger

Rate this Post:
{[['']]}


Table of contents is compulsory for blog that have large number of posts, so that users can find posts and navigate easily. Table of Contents is also Compulsory for Search engine optimized site.

It is easy to create Table of Contents page. Just follow these steps;

Setup Instructions:

Then Paste the code shown below;

<style type="text/css">
#toc{

width:99%;

margin:5px auto;

border:1px solid #2D96DF;
-webkit-box-shadow:4px 4px 8px 2px rgba(0,0,0, 0.2);
-moz-box-shadow:4px 4px 8px 2px rgba(0,0,0, 0.2);
box-shadow:4px 4px 8px 2px rgba(0,0,0, 0.2);

}
.labl{

color:#FF5F00;

font-weight:bold;

margin:0 -5px;

padding:1px 0 2px 11px;
background:-moz-linear-gradient(right,#C2EAFE 0%,#055A85 40%);
background:-webkit-gradient(linear,left 10,right 80,color-stop(0.20,#055A85),color-stop(1,#C2EAFE));
border:1px solid #2D96DF;

border-radius:4px;-moz-border-radius:4px;
-webkit-border-radius:4px;box-shadow:3px 3px 1px #bbb;
-moz-box-shadow:3px 3px 1px #bbb;-webkit-box-shadow:3px 3px 1px #bbb;display:block;

}
.labl a{

color:#fff;

}
.labl:first-letter{t

ext-transform:uppercase;

}
.new{

color:#FF5F00;

font-weight:bold;

font-style:italic;

}
.postname{

font-weight:normal;

background:-moz-linear-gradient(right,#C2EAFE 0%,#fff 40%);
background:-webkit-gradient(linear,left 80,right 10,color-stop(0.60,#fff),color-stop(1,#C2EAFE));

}
.postname li{

border-bottom: #ddd 1px dotted;

margin-right:5px

}
</style>
<div id="toc"><script type="text/javascript" src="http://bloggerprofessionals.googlecode.com/files/MyTOC.js"></script>
<script src="http://www.bloggerprofessionals.com/feeds/posts/default?max-results=9999&amp;alt=json-in-script&amp;callback=loadtoc">
</script></div>

Change the RED Link with your own blog link and Save the Page.

 

That’s it. You are Done. For Demo You can See Table of Contents Page


SHARE THIS POST   

  • Facebook
  • Twitter
  • Myspace
  • Google Buzz
  • Reddit
  • Stumnleupon
  • Delicious
  • Digg

6 comments:

  1. This is just brilliant! Thank you. One question though. Can I have exactly the same Table but instead of sorting by Label could I do it by date. i.e a chronological table.

    Also, my blog has over 1800 posts. Will this table of contents show all of them?

    ReplyDelete
  2. This is so awesome. The color and design is great!
    I have one question, how can I use this css and script, for a label based table of contents?

    ReplyDelete
  3. Hello admin.
    Thanks for your helping post. Nice solution code.

    Best Regards,
    ataur

    ReplyDelete
  4. Thanks, I have done. It very esaier

    ReplyDelete
  5. Thanks, it worked for me, i did not use the style. used only the script

    ReplyDelete

Comments will be Moderated by Blog Administrator.
Please do not Spam Here.....