Website Javascript Page Load
what its problem of this ?
<li><a href="" onclick='$.page("rank");return false;'>Rankings</a></li>
Code:
$.logfn=null;$.pageloaded=null;
$.page=function(page){
$("#timer").detach();
$('#content-right').html('<center>Processing ...<center>');
var tm=document.createElement("div");
tm.style.display = "none";
$(tm).load('index.php','small=1&p='+page,function(){
$('#content-right').html($(tm).html());
$(tm).remove();
if(typeof($.pageloaded)=='function') $.pageloaded();
$.pageloaded=null;
});
}
$("#topnav").ready(function(){
$("#topnav li").prepend("<span></span>");
$("#topnav li").each(function(){
var linkText = $(this).find("a").html();
$(this).find("span").show().html(linkText);
});
$("#topnav li").hover(function(){
$(this).find("span").stop().animate({
marginTop: "-40"
}, 250);
} , function() {
$(this).find("span").stop().animate({
marginTop: "0"
}, 250);
});
});