document.write(''); $('#last_area').html('最后登录:凤凰351区'); $('#tuijian_area').html('推荐登录:凤凰351区'); document.write('

最近登录

'); document.write('凤凰351区'); document.write('
服务器列表全部服务器>>'); document.write(''); document.write('
'); document.write('凤凰351区'); document.write('凤凰350区'); document.write('凤凰349区'); document.write('凤凰348区'); document.write('凤凰347区'); document.write('凤凰346区'); //document.write(''); //定义全局变量 var serve_timeout; $(function(){ //找到所有的li标签 $(".serve_pop,.serve_pop_mod").hover(function(){ $(".serve_pop_mod").show(); },function(){ $(".serve_pop_mod").hide(); }) $(".serve_pop_mod .s_tab li").each(function(index){ $(this).mouseover(function(){ //滑动门都要设置一个延迟时间,避免用户疯狂移动鼠标,导致服务器崩溃,这个很重要 serve_timeout =setTimeout(function(){ $(".serve_pop_mod .show_cont").removeClass("show_cont"); $(".serve_pop_mod .s_tab li").removeClass("selected"); // $("div").eq(index).addClass("divarea"); //另一种写法是:$(div:eq(index)).addClass("show_cont"); $(".serve_pop_mod .s_cont:eq("+index+")").addClass("show_cont"); $(".serve_pop_mod .s_tab li").eq(index).addClass("selected"); }, 320); $(this).mouseout(function(){ clearTimeout(serve_timeout); }); }); }); });