Promine

Nossas idéias para você…

Last week I was looking for a stupidly simple tabs system. I didn’t need anything other than toggling some divs after clicking on a menu item and making no change in the javascript if I’d like to add a new tab. After googling for a while, I found some interesting codes but none of them were as simple as I would like. I’d like to include only a 1-kb javascript file to make things work. So, I created my own solution :) . Please: don’t expect to see an outstanding and revolutionary code, because that is only a simple tab system and probably somebody has already done something like that. This week I wrote the Prototype version. Next week I’ll rewrite it using Jquery library.

Try it out

Download Code

Configuration

  1. Include prototype (tested 1.6.1)
  2. Include promine.simple.tabs.js
  3. Create tab menu and set the menu html id into the promine.simple.tab.js
  4. Important: menu item prefix must be the same the tab content prefix. Ex.:  profile_menu -> profile_content

Popularity: 29% [?]

Write a Comment