// JavaScript Document /*澶氶€�*/ var selectCheckbox = function (name, status) { $("input[name='" + name + "']").attr("checked", status); } var selectCZClass = function () { var select = $("#czclass"); var cid = select.val(); if (cid > 0) { location.href = "/list_" + cid + ".htm"; } } /*搴曢儴鍥哄畾鏍�*/ /*if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') { cot_t1_DOCtp = "_top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth);}"; } else { cot_t1_DOCtp = "_top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth);}"; } var fdc_bodyCSS = '* html {}'; var fdcCSS = '#footer {position:fixed;'; var fdcCSS = fdcCSS + '_position:absolute; '; var fdcCSS = fdcCSS + 'width:100%;'; var fdcCSS = fdcCSS + 'bottom:0px;'; var fdcCSS = fdcCSS + 'right:0px;'; var fdcCSS = fdcCSS + 'clip:rect(0 100% 100% 0);'; var fdcCSS = fdcCSS + cot_t1_DOCtp; document.write('');*/ /*椤堕儴瀛愬鑸�*/ function extend() { document.getElementById("ctl-llist").style.display = "block"; } function over() { document.getElementById("ctl-llist").style.display = "none"; } function hide() { document.getElementById("ctl-llist").style.display = "none"; } function unfold() { var unfolds = document.getElementById("unfold"); var enlarge = document.getElementById("enlarge"); if (enlarge.style.display != "") { enlarge.style.display = ""; unfolds.className = "unfold-up"; } else { enlarge.style.display = "none"; unfolds.className = "unfold"; }; } /*瀛愬鑸乏鍙冲垏鎹�*/ $(document).ready(function (e) { $(".right").click(function () { var ico = $(".snav").children("a"); var navPos = $(".snav").position(); var widths = ico.width(); var snavWidth = widths * ico.length - 1; var last = snavWidth - (widths * 4); if (Math.abs(navPos.left) % widths * 3 == 0) { if (navPos.left > -last) { $(".snav").css({ left: (navPos.left - (widths * 3)) + "px" }); $(".left").css({ display: "block" }); } else { $(".right").css({ display: "none" }); } } }); $(".left").click(function () { $(".right").css({ display: "block" }); var ico = $(".snav").children("a"); var navPos = $(".snav").position(); var widths = ico.width(); var snavWidth = widths * ico.length - 1; var last = snavWidth - (widths * 4); if (Math.abs(navPos.left) % widths * 3 == 0) { if (navPos.left < -widths) { $(".snav").css({ left: (navPos.left + (widths * 3)) + "px" }); } else { $(".left").css({ display: "none" }); } } }); }); /*宸ュ叿椤甸潰婊氬姩*/ /*var myScroll,scroll1; function loaded () { myScroll = new IScroll('#wrapper', { mouseWheel: true,scrollbars: true,preventDefault:false,}); click:iScrollClick(); } document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);*/ /*閫夐」鍗″垏鎹�*/ $(function () { $(".tab-mune").find("li").click(function () { $(".tab-mune").find("li").attr('class', ''); $(".posi-num").find("section").attr('class', 'hide'); $(".content").find("section").attr('class', 'hide'); $(".posi-fsnum").find("ul").attr('class', 'hide'); $(".help-notice").find("ul").attr('class', 'hide'); $(".shrink").find("ul").attr('class', 'hide'); $(this).attr('class', 'select'); $(".content").find("section").eq($(this).index()).attr('class', ''); $(".posi-fsnum").find("ul").eq($(this).index()).attr('class', ''); $(".shrink").find("ul").eq($(this).index()).attr('class', ''); $(".posi-num").find("section").eq($(this).index()).attr('class', ''); $(".help-notice").find("ul").eq($(this).index()).attr('class', ''); var data = $(this).attr('data'); if (data != "") { $("#chk").val(data); } }); //鎺у埗缁撴灉鍦ㄧ缉姘村姛鑳� var numtype = $(".tab-mune").find("li[class=select]").attr("name"); if (numtype == "dadi") { $(".posi-num").find("section[name=dingwei]").attr('class', 'hide'); $(".posi-num").find("section[name=dadi]").attr("class", ""); } $(".snav").find("a").click(function () { $(".snav").find("a").attr('class', ''); $(".num-result").find("ul").attr('class', 'hide'); $(".swiper").find("section").attr('class', 'hide'); $(this).attr('class', 'active'); $(".swiper").find("section").eq($(this).index()).attr('class', ''); $(".num-result").find("ul").eq($(this).index()).attr('class', ''); }); $(".snav").find("a").click(function () { $(".snav").find("a").attr('class', ''); $(".ssq-gs").find("ul").attr('class', 'hide'); $(this).attr('class', 'active'); $(".snav").offset({ left: "4rem" }); $(".ssq-gs").find("ul").eq($(this).index()).attr('class', ''); }); }); /*璺熼殢鍙峰垎鏋愯鎯呭睍绀�*/ $(document).ready(function (e) { $('.hidden').hide(); $(".ssq-gs").find("li").click(function () { $(this).next().siblings("li").find("a").attr('class', ''); $(this).find("dl").slideDown(); $(this).find("a").attr('class', 'blue'); $(this).siblings("li").find("dl").slideUp(); }); }); /*3d璺熼殢鍙峰垎鏋�*/ $(document).ready(function () { $('.hidden').hide(); $(".list").click(function () { $(this).next().siblings(".list").find("a").attr('class', ''); $(this).next().slideDown(); $(this).find("a").attr('class', 'blue'); $(this).next().siblings(".hidden").slideUp(); }); $('#show-nav').click(function(){ if($('.zst-subnav').css("display")=="none"){ $('.zst-subnav').css("display","block"); $('#show-nav img').attr({src:"../static/images/up-icon.png"}); }else{ $('.zst-subnav').css("display","none"); $('#show-nav img').attr({src:"../static/images/down-icon.png"}); } }) });