PageSourceSearch

https://www.guangde.gov.cn/dist/js/base.js?r=ccs

js guangde.gov.cn collected 2026-09-25 02:47:13 UTC 3,242 bytes, 99 lines download raw bytes

1//网站首页导航切换
2function isShowIndex(tab_id,div_id,who,aId,aHref,num){
3    for(var i = 0;i < num;i++){
4        document.getElementById("dt"+who+i).style.display="none";
5        document.getElementById("sp"+who+i).className="aoff";
6    }
7    document.getElementById(div_id).style.display="block";
8    document.getElementById(tab_id).className="aon";
9};
10
11//tab选项卡
12function tabChange(obj,id){
13    var arrayli = obj.parentNode.getElementsByTagName("li"); //获取li数组
14    var arrayul = document.getElementById(id).getElementsByTagName("ul"); //获取ul数组
15    for(i=0;i<arrayul.length;i++)
16    {
17        if(obj==arrayli[i])
18        {
19            arrayli[i].className = "tab_hover";
20            arrayul[i].className = "";
21        }
22        else
23        {
24            arrayli[i].className = "";
25            arrayul[i].className = "hidden";
26        }
27    }
28};
29
30//网站首页信件列表状态,政务大厅列表状态
31$(function(){
32    $(".pdw_zt").filter(":contains('办理中')").addClass("pbw_5");
33    $(".pdw_zt").filter(":contains('已办结')").addClass("pbw_6");
34});
35
36//网站首页信箱状态
37$(function(){
38    $(".im_zt").filter(":contains('受理中')").addClass("cl_02");
39    $(".im_zt").filter(":contains('已办结')").addClass("cl_03");
40    $(".im_zt").filter(":contains('待办理')").addClass("cl_04");
41});
42
43//友情链接
44$(function(){
45    $('.friendlink_top ul li').hover(function(){
46        $(this).addClass('active');
47        $('.friendlink_box div').eq($(this).index()).show();
48    },function(){
49        $(this).removeClass('active');
50        $('.friendlink_box div').eq($(this).index()).hide();
51    });
52    $('.friendlink_box div').hover(function(){
53        $(this).show();
54    },function(){
55        $(this).hide();
56    });
57});
58//隐藏菜单
59$(window).scroll(function() {
60    if ($(window).scrollTop() > 200) {
61        $(".m-nav2").fadeIn(400);
62    } else {
63        $(".m-nav2").fadeOut(400);
64    }
65});
66//控制二级导航样式
67$(function(){
68    $(".page_nav ul li").last().css("background","none");
69});
70
71//列表页每隔五条数据显示一个分割线
72$(function(){
73    $(".listright_box ul li:nth-child(5n)").addClass("listright_hr");
74});
75
76//政民互动信件列表状态
77$(function(){
78    $(".ih_zt").filter(":contains('受理中')").addClass("colorred");
79    $(".ih_zt").filter(":contains('待办理')").addClass("coloryellow");
80    $(".ih_zt").filter(":contains('已办结')").addClass("colorgreen");
81});
82/*$(function(){
83	var jiucuoData = $('.j-jiucuo').attr('data-setting');
84	console.log("jiucuoData",jiucuoData)
85	var jiucuoDataObj = eval('(' + jiucuoData + ')');
86	if(jiucuoDataObj){
87	   var url = 'https://zfwzgl.www.gov.cn/exposure/jiucuo.html?site_code=' + jiucuoDataObj.sitecode + '&url=' + encodeURIComponent(window.location.href);
88		$('.j-jiucuo').find('a').attr({'href':url,'target':'_blank'}); 
89	}
90})*/
91
92//选项卡
93$(function(){
94    $('.tit-switch').children().children("li").mouseover(function(){
95        $(this).addClass('u-active').siblings().removeClass('u-active');
96        $(this).parent().parent().siblings('.list-switch').hide().eq($(this).index()).show();
97    });
98});
99

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.