var xsn_small_top=''; jQuery(document).ready(function(){ xsn_username=""; var tsTimeStamp= new Date().getTime(); if(typeof urlsite == "undefined"){ urlsite = ''; } var url = "http://bbs.xiashanet.com/login/top.php?site="+urlsite+"&t="+tsTimeStamp+"&jsoncallback=?"; jQuery.getJSON( url, function(data){ jQuery(".x_nav_right").html(data.small_login); //导航开始 jQuery(".x_nav_more").mouseenter(function(){ this_=jQuery(this); this_.find(".nature_more").addClass("selected"); if(this_.find(".x_list_more")){ this_.find(".x_list_more").show(); } this_.mouseleave(function(){ this_.find(".nature_more").removeClass("selected"); if(this_.find(".x_list_more")){ this_.find(".x_list_more").hide(); } }); }); //登录框 jQuery("form[name='login']").find("input[name='pwuser']").click(function(){ this_=jQuery(this); defaultValue=this.defaultValue; if(this_.val()==defaultValue){ this_.val(''); } this_.blur(function(){ if(this_.val()==''){ this_.val(defaultValue); } }); }); //weibo登录 jQuery(".loginWays").mouseenter(function(){ this_=jQuery(this); jQuery("#menu_weibo_login").show(); this_.mouseleave(function(){ jQuery("#menu_weibo_login").hide(); }); }); //绑定帐号 jQuery(".x_username").mouseenter(function(){ this_=jQuery(this); jQuery(".x_userbinding").show(); this_.mouseleave(function(){ jQuery(".x_userbinding").hide(); }); }); //帐号切换 jQuery(".userID").click(function(){ var uid=jQuery(this).attr("id"); var url = "http://bbs.xiashanet.com/pw_ajax.php?jsoncallback=?"; jQuery.getJSON( url, { action: "switchuser", uid: uid, json: "1", u_init:(new Date().getTime()) }, function(data){ if(data.status=="ok"){ window.location.reload(); } }); }); }); }); xsn_small_top+='
'; xsn_small_top+='
'; xsn_small_top+=' '; xsn_small_top+='
'; xsn_small_top+=' '; xsn_small_top+='
'; xsn_small_top+='
'; xsn_small_top+='
'; document.write(xsn_small_top);