Login   Register  
PHP Classes
elePHPant
Icontem

File: tab.js

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of mohammad keramatifar  >  PHP Tab Control Creator  >  tab.js  >  Download  
File: tab.js
Role: Auxiliary data
Content type: text/plain
Description: javascript function file
Class: PHP Tab Control Creator
Generate a tab control to switch visible content
Author: By
Last change:
Date: 1 year ago
Size: 447 bytes
 

Contents

Class file image Download
    function changeTab(tabNumber, tabMenuID)
    {
        
        $('#'+tabMenuID+' .tabContent div').css('display', 'none')
           $('#'+tabMenuID+' .tabContent div#window'+tabNumber).fadeIn('slow') 
           $('#'+tabMenuID+' .tabHeader ul li').removeClass('current');
           $('#'+tabMenuID+' .tabContent div').removeClass('current');
           $('#'+tabMenuID+' .tabHeader ul li#tab'+tabNumber).addClass('current');
        
    }