全新独家版本长久稳定

QQ群二维码

登录器下载 补丁下载 在线充值 top
function doAct(s){ var t = document.getElementById('kf'), c = s.className; if(c != null && c.indexOf(' ') > -1){ s.className = c.replace(' ', ''); t.className = t.className.replace(' close', ''); }else{ s.className = c + ' '; t.className = t.className + ' close'; } } $(function(){ // 声音开关 $(".audio").on("click",function(){ if($(this).hasClass("on")){ $(this).removeClass("on").attr("src","images/s_off.png"); $(this).next("audio")[0].pause(); }else{ $(this).addClass("on").attr("src","images/s_on.png"); $(this).next("audio")[0].play(); } }); // 右侧导航 $(".flagdiv li a").each(function(index, el) { $(this).click(function(e) { e.preventDefault(); $("html, body").animate({ scrollTop: $($(this).attr("href")).offset().top + "px" }, { duration: 500, easing: "swing" }); $(this).parent().addClass("bgcolor"); $(this).parent().siblings("li").removeClass("bgcolor"); return false; }); }); $('.close_flag').toggle(function() { $('.flagdiv').hide(); $(this).html("展开<") }, function() { $('.flagdiv').show(); $(this).html("收起>") }); $('#backtop').click(function() { $('html,body').animate({ scrollTop:0 }, 800); }); //小轮播 $('.ad_img .lunbo3').unslider({ speed: 10, delay: 3000, dots: true }); $('.ad_img .dots').css({'width':($('.ad_img .dots li').length*13+20)+'px'}) $('.ad_img2 .lunbo3').unslider({ speed: 500, delay: 3000, arrows: true, dots: true }); $('.ad_img2 .dots').css({'width':($('.ad_img2 .dots li').length*90+220)+'px'}) // 效果 // $(".logo").removeClass("bounceIn animated").addClass('bounceIn animated'); function contains(a,b){ return a.contains ? a != b && a.contains(b) :!!(a.compareDocumentPosition(b) & 16); } function getRelated(e){ var related; var type=e.type.toLowerCase();//这里获取事件名字 if(type=='mouseover'){ related=e.relatedTarget||e.fromElement }else if(type='mouseout'){ related=e.relatedTarget||e.toElement } return related; } $(function(){ animate($(".zbzs img,.btn_down_box,.title03,.title04"),"swing"); animate($(".pic3_box img"),"bounce"); animate($(".dlxzq"),"fadeIn"); animate($(".btn4 li"),"tada"); }); var ad_imgS=$(".ad_img").offset().top-700; var move_boxS=$(".ad_img").offset().top-300; $(window).scroll(function() { var nowS=$(this).scrollTop(); if(ad_imgS" } qin.eq(i).html(aHtml.join("")) } var aSpan = $(".qin span"); for (var i = 0; i < aSpan.length; i++) { aSpan.eq(i).css("left", aSpan.eq(i).position().left + "px") } aSpan.css("position", "absolute"); var iMinTop = -18; var iMaxTop = 18; var obj = null; aSpan.on("mouseenter", aaa); function aaa(ev) { this.parentNode.onmouseout = null; this.parentNode.onmousemove = null; var ev = ev || event; var iStartY = ev.clientY; obj = $(this); this.parentNode.onmousemove = function (ev) { $(this).find("span").off("mouseenter", aaa); $(this).find("span").on("mouseenter", bbb); var iMouseY = ev.clientY; var iTop = iStartTop + (iMouseY - iStartY); var aSpan = $(this).find("span"); var iIndex = obj.index(); aSpan.stop(); if (iTop < iMinTop || iTop > iMaxTop) { aSpan.animate({top: iStartTop}, 500, "easeOutElastic"); $(this).find("span").on("mouseenter", aaa); $(this).find("span").off("mouseenter", bbb); this.onmouseleave = null; this.onmousemove = null } else { for (var i = 0; i < aSpan.length; i++) { if (iMouseY > iStartY) { var iSpanTop = iTop - Math.abs(i - iIndex); if (iSpanTop < iStartTop) { iSpanTop = iStartTop } } else { if (iMouseY < iStartY) { var iSpanTop = iTop + Math.abs(i - iIndex); if (iSpanTop > iStartTop) { iSpanTop = iStartTop } } } aSpan.eq(i).css("top", iSpanTop + "px") } } this.onmouseleave = function () { aSpan.animate({top: iStartTop}, 500, "easeOutElastic"); $(this).find("span").on("mouseenter", aaa); $(this).find("span").off("mouseenter", bbb); this.onmouseleave = null; this.onmousemove = null } } } function bbb() { obj = $(this) } } })