Ver Mensaje Individual
  #8 (permalink)  
Antiguo 24/07/2010, 14:39
Avatar de tredio
tredio
 
Fecha de Ingreso: noviembre-2008
Ubicación: Carabobo
Mensajes: 466
Antigüedad: 16 años, 2 meses
Puntos: 66
Respuesta: [AYUDA] SetTimeOut y ClearTimeout [Z3R0N3]

bueno a eso me referia, solo estaba poniendo un ejemplo facil, si no pones los parentesis la funcion simplemente no se va a ejecutar.

veo que te faltan parentesis en varios lugares.

Código Javascript:
Ver original
  1. $(document).ready(function(){
  2. $(".items").load("pages/inicio.php");
  3.    $("#menu a").each(function(){
  4.       var href = $(this).attr("HREF");
  5.       $(this).attr({ href: "#"});
  6.      
  7.       $(this).click(function(evento){
  8.       evento.preventDefault();
  9.       $(".items").fadeOut("slow", loaditems());
  10.       $(".load").remove();
  11.       $(".carga").append('<DIV CLASS="load"></DIV>');
  12.       $(".load").fadeIn('normal');
  13.  
  14.         function loaditems()
  15.         {
  16.             $(".items").load(href, scrll());
  17.         }
  18.         function scrll()
  19.         {
  20.         $(".scrollable").scrollable({ vertical: true, keyboard: true, mousewheel: true, speed: 400});
  21.         $(".scrollable").scrollable().begin(0);
  22.                 $(".items").fadeIn("slow", hideLoader());
  23.         }
  24.         function hideLoader()
  25.         {
  26.             $(".load").fadeOut("normal");
  27.         }
  28.  
  29. return false;
  30.        
  31.     });
  32.    });
  33. });
  34.  
  35.  
  36.  
  37. $(function() {
  38.         // set opacity to null on page load
  39.         $("ul#menu span").css("opacity","0");
  40.         // on mouse over
  41.         $("ul#menu span").hover(function () {
  42.             // animate opacity to full
  43.             $(this).stop().animate({
  44.                 opacity: 1
  45.             }, 'slow');
  46.         },
  47.         // on mouse out
  48.         function () {
  49.             // animate opacity to null
  50.             $(this).stop().animate({
  51.                 opacity: 0
  52.             }, 'slow');
  53.         });
  54.     });

prueba asi y me cuentas.