123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- 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";
- }
- }
- 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" });
- }
- }
- });
- });
- $(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();
- });
- });
- $(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"});
- }
-
- })
- });
-
|