Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/12/2010, 16:02
Yoi
 
Fecha de Ingreso: noviembre-2008
Mensajes: 144
Antigüedad: 15 años, 5 meses
Puntos: 2
Respuesta: problemas con tabs

de nuevo mi codigo...
Código Javascript:
Ver original
  1. $(document).ready(function() {
  2.     //Default Action
  3.     $(".tab_content").hide(); //Hide all content
  4.     $("ul.tabs li:first").addClass("active").show(); //Activate first tab
  5.     $(".tab_content:first").show(); //Show first tab content
  6.    
  7.     //On Click Event
  8.     $("ul.tabs li").click(function() {
  9.         $("ul.tabs li").removeClass("active"); //Remove any "active" class
  10.         $(this).addClass("active"); //Add "active" class to selected tab
  11.         $(".tab_content").hide(); //Hide all tab content
  12.         var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
  13.         $(activeTab).fadeIn(); //Fade in the active content
  14.         return false;
  15.     });
  16. });