PHP Classes

File: tab.js

Recommend this page to a friend!
  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: 9 years 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'); }