Selasa, 14 Agustus 2007

Tab panes

It's easy to configure this script. You put your content into separate <DIV>s and then call a javascript function which creates the tabs dynamically.

Create new tab dynamically

You can call the function createNewTab() when you need to create a new tab dynamically. Arguments to this functions are:

  • Tab title = Tab title as string
  • Content = Tab content as string(optional)
  • Url to content = Url to file(optional). The content of this file will be loaded dynamically by Ajax

Remove a tab

You can remove a tab by calling the function deleteTab(tabTitle). Input to this function is the label of the tab you want to remove, example: deleteTab('Menu scripts');

Add content dynamically to one of the tabs

You can use the function addAjaxContentToTab to add content from an external file dynamically to one of the tabs. This function takes two arguments:

  1. Title of tab, example: "Menu scripts"
  2. Relative path to external file, example: "includes/external.inc"

Example: Add content

Untuk lebih lengkapnya http://freeajaxscripts.net/

Demo
Download

Tidak ada komentar: