There are many examples on creating tabbed navigation with (or without) help of JavaScript frameworks like Prototype, MooTools or JQuery. However, I find that it’s much easier to create draggable tabbed navigation using Chain.js and its great extension: Interaction.js.
Riziq, creator of Chain.js & Interaction.js, already showed an example on how to utilize the libs to build tab interface in a few JS code lines. However, for its own purpose, the example is not SEO-friendly — disabling JavaScript in your browser will result in empty content and search engines will see nothing on your page consequently. Now say, you want to create a tabbed navigation for your blog to show/hide “Latest Posts”, “Latest Comments” etc. and you want the links can be seen no matter if JavaScript is enabled or not in reader’s browser — something looks like this:
Step 1: HTML & CSS
Just create a template in HTML and full links to latest posts, comments and most popular articles:
Recommended Reading
JavaScript Step by Step (Step By Step (Microsoft))Your hands-on, step-by-step guide to the fundamentals of JavaScript development.
Teach yourself how to program with JavaScript -- one step at... Read More >
JavaScript: The Good PartsMost programming languages contain good and bad parts, but JavaScript has more than its share of the bad, having been developed and released in a h... Read More >
JavaScript: The Definitive GuideThis Fifth Edition is completely revised and expanded to cover JavaScript as it is used in today's Web 2.0 applications. This book is both an examp... Read More >







3