SleekTabs

What is it?

SleekTabs is a bit of software written in PHP that allows you to make tabbed web pages really easily. With just a small snippet of code, you can have tabs anywhere on your page. When a user clicks a tab, some new information gets loaded into the page, without them having to endure a full reload.

The result is a cool, sleek way to improve your users’ experience by making it faster and better. It also uses less bandwidth, as the whole page doesn’t need to be retransferred each time a tab is clicked.

What about people without JavaScript on? Will my site break?

No. SleekTabs is clever enough that if you set it up correctly, a fallback URL can be specified. When the user clicks a tab with JavaScript off (or if a search engine wants to view a tab, for example), it still works. Sure, it's not as flashy, but it still works.

How do I set it up?

Alternatively, you can read a textual version of that tutorial, which may be easier to quickly refer back to, or if you need to go at a slower pace.

SleekTabs also contains an example script — index.php which comes as part of the download. This example script uses a slightly different way of implementing SleekTabs, using just a single file. I recommend you follow the tutorials above, however, as it makes more sense to build your implementations using multiple files, to keep things organised.

What about browser support?

We aim to support all mainstream modern browsers, including Firefox, Internet Explorer, Opera, Safari and other browsers based on the Gecko and WebKit engines.

Who made this?

SleekTabs is made by myself and Richard Fitzgerald, but hosted here on my site. SleekTabs originally came into life as it was adapted from an internal class used to make tabbed interfaces on a project I was working on. It has now evolved and grown into its own script.

What are the licence terms?

SleekTabs is free software/open source under the BSD Licence. See the licence header in the sleektabs.php file for more information.