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$(document).ready(function(){
$(".items").load("pages/inicio.php");
$("#menu a").each(function(){
var href = $(this).attr("HREF");
$(this).attr({ href: "#"});
$(this).click(function(evento){
evento.preventDefault();
$(".items").fadeOut("slow", loaditems());
$(".load").remove();
$(".carga").append('<DIV CLASS="load"></DIV>');
$(".load").fadeIn('normal');
function loaditems()
{
$(".items").load(href, scrll());
}
function scrll()
{
$(".scrollable").scrollable({ vertical: true, keyboard: true, mousewheel: true, speed: 400});
$(".scrollable").scrollable().begin(0);
$(".items").fadeIn("slow", hideLoader());
}
function hideLoader()
{
$(".load").fadeOut("normal");
}
return false;
});
});
});
$(function() {
// set opacity to null on page load
$("ul#menu span").css("opacity","0");
// on mouse over
$("ul#menu span").hover(function () {
// animate opacity to full
$(this).stop().animate({
opacity: 1
}, 'slow');
},
// on mouse out
function () {
// animate opacity to null
$(this).stop().animate({
opacity: 0
}, 'slow');
});
});
prueba asi y me cuentas.