1// JavaScript Document 2$(function(){ 3 /*å°å鿤æ·é�*/ 4 $("#showMenu").click(function(){ 5 if($(".left-nav").is(":visible")){ 6 $(".left-nav").hide(); 7 $(this).removeClass("hideclass"); 8 return false; 9 }else{ 10 $(".left-nav").show(); 11 $(this).addClass("hideclass"); 12 return false; 13 } 14 }); 15 /* $('body').click(function(event){ 16 if(!$(event.target).parents().hasClass('left-nav')&&!$(event.target).hasClass('left-nav')){ 17 $(".left-nav").hide(); 18 $("#showMenu").removeClass("hideclass"); 19 } 20 })*/ 21}) 22 23$(function(){ 24 var sbner=null; 25 var itemsli=$("#banner ul li"); 26 var liLen=$("#banner ul li").length; 27 var now=0; 28 var itemspan=$(".banner_nav p span"); 29 var show_fun={ 30 auto_run:function(){ 31 var _this=this; 32 sbner=setInterval(function(){ 33 now++; 34 if(now > (liLen-1)){ now = 0 } 35 _this.select_point_show(now); 36 itemsli.eq(now).stop().animate({"z-index":"1","opacity":"1"},1000); 37 itemsli.eq(now).siblings().stop().animate({"z-index":"0","opacity":"0"},1000); 38 },5000); 39 }, 40 go_some:function(n){ 41 itemsli.eq(n).stop().animate({"z-index":"1","opacity":"1"},1000); 42 itemsli.eq(n).siblings().stop().animate({"z-index":"0","opacity":"0"},1000); 43 }, 44 select_point_show:function(){ 45 itemspan.removeClass("hov"); 46 47 itemspan.eq(now).addClass("hov"); 48 } 49 } 50 itemspan.click(function(){ 51 clearInterval(sbner); 52 var n=$(this).index(); 53 now=n; 54 show_fun.go_some(n); 55 show_fun.select_point_show(); 56 show_fun.auto_run(); 57 }) 58 show_fun.auto_run(); 59 show2(); 60}) 61function show2(){ 62 var sbner=null; 63 var itemsli=$("#banner2 ul li"); 64 var liLen=$("#banner2 ul li").length; 65 var now=0; 66 var itemspan=$(".banner_nav2 p span"); 67 var show_fun={ 68 auto_run:function(){ 69 var _this=this; 70 sbner=setInterval(function(){ 71 now++; 72 if(now > (liLen-1)){ now = 0 } 73 _this.select_point_show(now); 74 itemsli.eq(now).stop().animate({"z-index":"1","opacity":"1"},1000); 75 itemsli.eq(now).siblings().stop().animate({"z-index":"0","opacity":"0"},1000); 76 },5000); 77 }, 78 go_some:function(n){ 79 itemsli.eq(n).stop().animate({"z-index":"1","opacity":"1"},1000); 80 itemsli.eq(n).siblings().stop().animate({"z-index":"0","opacity":"0"},1000); 81 }, 82 select_point_show:function(){ 83 itemspan.removeClass("hov"); 84 itemspan.eq(now).addClass("hov"); 85 } 86 } 87 itemspan.click(function(){ 88 clearInterval(sbner); 89 var n=$(this).index(); 90 now=n; 91 show_fun.go_some(n); 92 show_fun.select_point_show(); 93 show_fun.auto_run(); 94 }) 95 show_fun.auto_run(); 96} 97$(function(){ 98 $("#openKefu").live("click",function(){ 99 $("#openKefu").stop().animate({right:"-25px"},function(){$(this).hide();}); 100 $("#dialog_kefu").show().css("right","-120px"); 101 $("#dialog_kefu").stop().animate({right:"0"}); 102 }); 103 $("#dialog_close").live("click",function(){ 104 $("#dialog_kefu").stop().animate({right:"-120px"},function(){$(this).hide();}); 105 $("#openKefu").show().css("right","-25px"); 106 $("#openKefu").stop().animate({right:"0"}); 107 }); 108}) 109/*鿤æ·å½*/ 110function creatLoginBox(){ 111 var login_dialog = '<div id="dialog_login" class="dialog login_dialog" data-cover="true">\ 112 <div class="login_box">\ 113 <div class="dialog_title"> 鿤æ·è¿éæ¤æ·é<a href="javascript:close_dialog(\'dialog_login\');" class="close_dialog"></a></div>\ 114 <form>\ 115 <p class="error"> </p>\ 116 <div class="input_cls ml20"><label class="user-ic"></label><input type="text" class="text_input" placeholder="鿤æ·éæ¤æ·éæ¤æ·éæ¤æ·éæ¤æ·/éç«ä¼æ·éæ¤æ·"/></div>\ 117 <div class="input_cls ml20"><label class="psw-ic"></label><input type="password" class="text_input" placeholder="鿤æ·éæ¤æ·éæ¤æ·éæ¤æ·éæ¤æ·"/></div>\ 118 <div class="auto_lg ml20"><input type="checkbox" id="auto_login" /><label for="auto_login">éç讹æ·éæ¤æ·å½</label><a href="">鿤æ·éæ¤æ·éæ¤æ·è�</a></div>\ 119 <div class="auto_lg ml20"><input type="submit" class="submit-btn" value="" /></div>\ 120 <p class="other_lg ml20">鿤æ·éæ¤æ·éé°ç¡·æ·éç»ï¿½<a href="" class="qq_login"></a><a href="" class="sina_login"></a></p>\ 121 <a class="register_now ml20" href=""></a>\ 122 </form>\ 123 </div>\ 124 </div>'; 125 if($("#dialog_login").length == 0){ 126 $("body").append(login_dialog); 127 } 128} 129function close_dialog(obj){ 130 $("#"+obj).remove(); 131}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.