// JavaScript Document function scriptQueryString(name) { var scripts = document.getElementsByTagName("script"); var url = scripts[scripts.length - 1].src; if (url.indexOf("?") == -1 || url.indexOf(name + '=') == -1) { return ''; } var reg = new RegExp(name + "=([^&]*)(&|$)", "i"); var r = url.match(reg); if (r != null) return unescape(r[1]); return ''; } var column = scriptQueryString("mod"); $(".btn-menu").bind("click", function() { if ($("#header .mod").css("display") == "none") { $("#header .mod").slideDown(300); } else { $("#header .mod").slideUp(200); } }); if (column == 0) { $("#quick .btn").toggle(function() { $("#quick .con .at1").stop().animate({ right: "0px", top: "-150px", opacity: 1 }, 500, "easeOutExpo"); $("#quick .con .at2").stop().animate({ right: "90px", top: "-100px", opacity: 1 }, 500, "easeOutExpo"); $("#quick .con .at3").stop().animate({ right: "130px", top: "5px", opacity: 1 }, 500, "easeOutExpo"); $("#quick .con .at4").stop().animate({ right: "90px", top: "100px", opacity: 1 }, 500, "easeOutExpo"); $("#quick .con .at5").stop().animate({ right: "0px", top: "150px", opacity: 1 }, 500, "easeOutExpo"); $("#quick .btn").find("img").attr("src", "images/quick-colse.png"); }, function() { $("#quick .con .at1").stop().animate({ right: "-10px", top: "-10px", opacity: 0 }, 500, "easeOutExpo"); $("#quick .con .at2").stop().animate({ right: "-10px", top: "-10px", opacity: 0 }, 500, "easeOutExpo"); $("#quick .con .at3").stop().animate({ right: "-10px", top: "-10px", opacity: 0 }, 500, "easeOutExpo"); $("#quick .con .at4").stop().animate({ right: "-10px", top: "-10px", opacity: 0 }, 500, "easeOutExpo"); $("#quick .con .at5").stop().animate({ right: "-10px", top: "-10px", opacity: 0 }, 500, "easeOutExpo"); $("#quick .btn").find("img").attr("src", "images/quick-btn.png"); }); $("#quick .btn-m").toggle(function() { $("#quick .con .at1").stop().animate({ right: "0px", bottom: "10px", opacity: 1 }, 500, "easeOutExpo"); $("#quick .con .at2").stop().animate({ right: "0px", bottom: "70px", opacity: 1 }, 500, "easeOutExpo"); $("#quick .con .at3").stop().animate({ right: "0px", bottom: "130px", opacity: 1 }, 500, "easeOutExpo"); $("#quick .con .at4").stop().animate({ right: "0px", bottom: "190px", opacity: 1 }, 500, "easeOutExpo"); $("#quick .con .at5").stop().animate({ right: "0px", bottom: "250px", opacity: 1 }, 500, "easeOutExpo"); $("#quick .btn-m").find("img").attr("src", "images/quick-colse.png"); }, function() { $("#quick .con .at1").stop().animate({ right: "0px", bottom: "-50px", opacity: 0 }, 500, "easeOutExpo"); $("#quick .con .at2").stop().animate({ right: "0px", bottom: "-50px", opacity: 0 }, 500, "easeOutExpo"); $("#quick .con .at3").stop().animate({ right: "0px", bottom: "-50px", opacity: 0 }, 500, "easeOutExpo"); $("#quick .con .at4").stop().animate({ right: "0px", bottom: "-50px", opacity: 0 }, 500, "easeOutExpo"); $("#quick .con .at5").stop().animate({ right: "0px", bottom: "-50px", opacity: 0 }, 500, "easeOutExpo"); $("#quick .btn-m").find("img").attr("src", "images/quick-btn.png"); }); $(document).ready(function() { var p = 0, t = 0; window.onscroll = function() { var sWidth = $(document.body).width(); var iscroll = $(document).scrollTop(); document.getElementById("swidth").innerHTML = sWidth; if (sWidth < 780) { $("#header .mod").css({ "display": "none" }); $("#foot .nav .son").css({ "display": "none" }); $("#foot .nav h3").toggle(function() { $(this).next().slideDown(300); $(this).find("img").attr("src", "images/icon-footnav-arrowDown.png"); }, function() { $(this).next().slideUp(200); $(this).find("img").attr("src", "images/icon-footnav-arrowTop.png"); }); } else { $("#header .mod").css({ "display": "block" }); $("#foot .nav .son").css({ "display": "block" }); jQuery(".partner").slide({ mainCell: ".bd ul", autoPage: true, effect: "left", autoPlay: true, vis: 5, delayTime: 1000 }); } if (iscroll > 750) { $(window).scroll(function(e) { p = $(this).scrollTop(); if (t <= p) { $(".service .bg").stop().animate({ top: "-200px" }, 10000, "easeOutExpo"); } else { $(".service .bg").stop().animate({ top: "-100px" }, 5000, "easeOutExpo"); } setTimeout(function() { t = p; }, 0); }); } } }); } else { var prev = 1; function applicationSHOW(obj, img, url) { document.getElementById("applicationIMG").src = img; document.getElementById("applicationURL").href = url; if (prev != null) { $("#a" + prev).removeClass("A"); } $("#a" + obj).addClass("A"); prev = obj; } $('#listcon').niceScroll({ cursorcolor: "#d82128", cursoropacitymax: 1, touchbehavior: false, cursorwidth: "5px", cursorborder: "0", cursorborderradius: "0px", autohidemode: false }); $(document).ready(function() { window.onscroll = function() { var sWidth = $(document.body).width(); document.getElementById("swidth").innerHTML = sWidth; var liWidth = 0; $("#scrollwidth li").each(function() { liWidth += $(this).width() + 15; }); if (sWidth < 780) { $("#header .mod").css({ "display": "none" }); $("#foot .nav .son").css({ "display": "none" }); $("#foot .nav h3").toggle(function() { $(this).next().slideDown(300); $(this).find("img").attr("src", "images/icon-footnav-arrowDown.png"); }, function() { $(this).next().slideUp(200); $(this).find("img").attr("src", "images/icon-footnav-arrowTop.png"); }); $("#scrollwidth").css({ "width": liWidth }); } else { $("#header .mod").css({ "display": "block" }); $("#foot .nav .son").css({ "display": "block" }); $("#scrollwidth").css({ "width": "100%" }); } } }); }