jQuery(document).ready(function() { jQuery.ajax({ cache: false, url: "http://"+window.document.location.host+"/Spokeman/wlfyr/login_check", dataType: "json", error: function() { jQuery("#nav").hide(); }, success: function(data) { if (data.result == 1) { jQuery(".loginname").html(data.username); jQuery("#nav").show(); jQuery("#uid").val(data.uid); } else { jQuery("#nav").hide(); } } }); jQuery.ajax({ cache: false, url: "http://"+window.document.location.host+"/Spokeman/wlfyr/getWZInfo?siteid=954", dataType: "json", error: function() { }, success: function(data) { jQuery("#forumstats").show(); jQuery("#totalcount").html(data.totalcount); jQuery("#todaycount").html(data.todaycount); jQuery("#yesterdaycount").html(data.yesterdaycount); jQuery("#usercount").html(data.usercount); jQuery("#lastestName").html(data.lastestName); } }); jQuery('#kaptchaImage').click(function(){//辁3???? jQuery(this).hide().attr('src', 'http://'+window.document.location.host+'/Spokeman/console/captcha-image?' + Math.floor(Math.random()*100)).fadeIn(); }); }); function logout() { jQuery.ajax({ cache: false, url: "http://"+window.document.location.host+"/Spokeman/wlfyr/logout", success: function(data) { jQuery("#nav").hide(); jQuery(jQuery('#kaptchaImage')).hide().attr('src', 'http://'+window.document.location.host+'/Spokeman/console/captcha-image?' + Math.floor(Math.random()*100)).fadeIn(); //location.reload(); } }); } function personal() { var uid = document.getElementById("uid").value; top.location.href = "/Spokeman/personal/space?uid="+uid; } function informationinfo() { var uid = document.getElementById("uid").value; top.location.href = "/Spokeman/personal/personalinfo?uid="+uid; }