






var file,
    scripts = document.getElementsByTagName("script");
file = scripts[scripts.length - 1].getAttribute("src");
var rgba1 = GetQueryString('rgba', file);
var color1 = GetQueryString('color', file);
console.log(color1, rgba);
function GetQueryString(name, str) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
    var r = str.substr(0).match(reg);
    if (r != null) return unescape(r[2]);
    return null
} $(function () {
    var para = (kefucurrentScript.src.match(/[?&]color=([^&]*)/i) || ["",
        ""])[1];
    console.log(para);
    var css = `
        <style>
.xd_title1>h3,
.title1>h3,
.title h3,
.ny_contact .pro_list h5,
.parameter .parameter_t h3,
.ys .ys_box .txt .ys_t h5,
.s_lc .lc_box .lc_list dl dt,
.ys .ys_box .txt .ys_t h5,
.ny_contact .product .pro_box .pro_list h5,
.title h3,
.xd_title1>h3,
.mt-ys-list li .mt-ys-text h6 span,
.mt-touch-one .mt-touch-r h6,
.mt-tit h6 span,
.mt-ys-list li .mt-ys-text h6 span,.mt-tit h6,.mt-pro-list li b,.mt-ys-list li .mt-ys-text b,.xd_fwys .fwys_main
.fwys_list > li .fwys_txt > h3,.xd_sale .xd_sale_main .sale_con .sale_list > li .sale_bg > h3,.title4>h3,.xd_att
.xd_att_main .att_con .att_list>li .att_bg>h3 {
color: #${para} !important;
}

.te_tBg,
.s_te .te_box .te_list .txt .te_nr,
.s_contact .contact_list,
.ny_contact .product .pro_box .pro_list .txt,
.hz_bg,
.matter .matter_l,
.matter_list.col-xs-4.col-sm-4.col-md-4:after,
.ys .ys_box .txt .ys_t span,
.s_lc,
.product_bg,
.detail .detail_box .detail_left .pic_list .txt,
.detail .detail_box .detail_right .pic_list .txt,
.attention .attention_box .attention_list1 .list_r,
.information .information_box,
.mt-honour .mt-honour-list li:hover .mt-honour-name,
.mt-pro-list li:hover,
.mt-touch-list li:hover .mt-touch-li,
.mt-duct4 .mt-duct4-text,
.mt-duct1,
.mt-case-top,
.mt-touch-list li:hover .mt-touch-li,
.mt-tit h6::after,
.mt-tit h6 b::after,.mt-tit h6::before,
.mt-tit h6::after,
.mt-tit h6::before,
.mt-tit h6::after,
.mt-tit h6 b::after,
.mt-tit h6 b::before,
.mt-tit h6::after,
.mt-tit h6::before,
.mt-tit h6 b::after,
.mt-tit h6 b::before,
.mt-case-top,.mt-pro-list li:hover .mt-pro-li,.mt-pro-list li span,.mt-ys-list li .mt-ys-li span,.mt-ys-list li:hover
.mt-ys-li,.xd-touch-box,.xd-touch-one .xd-touch-r,.xd_ys42 .xd_ys42_main .ys42_list>li .ys_pic .ys_title,.xd_show
.xd_show_main .xd_show_view .show_list > li::after,.xd_ys4 .xd_ys4_con .ys4_con_main .ys4_txt .ys4_txt_item > h3 >
i,.xd_ys4 .xd_ys4_con .ys4_con_main .ys4_txt .ys4_txt_item > h3 > span,.xd_fwlc .fw_lc_main .fw_lc_con,.xd_title1 > h5
> span,.attention .attention_box .attention_list1 .list_l h5:after{
background-color: #${para} !important;
}


.mt-ys-list li.mt-ys2 .mt-ys-text h6, .mt-ys-list li.mt-ys4 .mt-ys-text h6{
border-right: 1px solid #${para} !important;
}

.mt-pro-list li:hover .mt-pro-li,.mt-ys-list li:hover .mt-ys-li{
box-shadow: 0 0 12px 2px rgba(${rgba}, .3) !important;
}
.product .pro_title,
.mt-case-boot .mt-case-li:hover .mt-case-li-name {

background:rgba( ${rgba}, .8) !important;
}

.ny_contact .pro_list span {
background:rgba(${rgba},.8) !important;
}

.xd_ys4 .xd_ys4_con .ys4_con_main .ys4_txt .ys4_txt_item > h3 > span::after{
border: 5px solid rgba(${rgba},.3) !important;
}


.xd_ys4 .xd_ys4_con .ys4_con_main .ys4view .ys4_view_top .ys4_tell{
background: url(http://wjdh33.sjgogo.cn/templates/product/images/xd_ys4_tell_bg.png) center no-repeat #${para}
!important;

}

.ny_contact .pro_nr {
border: 3px solid #${para} !important;
}

.mt-touch-list li:hover .mt-touch-li,
.mt-touch-list li:hover .mt-touch-li {
border-color: #${para} !important;
}

.mt-duct4 .mt-duct4-text:before,
.mt-duct1 .mt-duct1-text:before {
border-color: #${para} transparent transparent transparent !important;
}


.mt-he li:hover .mt-he-li .mt-he-i1 {
background:#${para} url(http://wjdh33.sjgogo.cn/templates/product/images/h11.png) no-repeat center !important;
}

.mt-he li:hover .mt-he-li .mt-he-i2 {
background:#${para} url(http://wjdh33.sjgogo.cn/templates/product/images/h22.png) no-repeat center !important;
}

.mt-he li:hover .mt-he-li .mt-he-i3 {
background:#${para} url(http://wjdh33.sjgogo.cn/templates/product/images/h33.png) no-repeat center !important;
}

.mt-pro-list li:hover b, .mt-pro-list li:hover i, .mt-pro-list li:hover p{
color: #fff !important;
}


.mt-case li .mt-case-li .mt-case-name{
background:rgba( ${rgba}, .6) !important;
}

.mt-ys-list li .mt-ys-text h6{
border-color:#${para} !important ;
}
.mt-tit i img,.xd_sale .xd_sale_main .sale_con .sale_list>li .sale_bg>.sale_ico i >img,.title4>span img ,.xd_att
.xd_att_main .att_con .att_list>li .att_bg>span img,.ys_ico img,.xd_pro_ys .xd_proys_con .pro_ys_list li
.pro_ys_pic>span>img{
-webkit-filter: drop-shadow(-300px 0 0px #${para}) !important;
filter: drop-shadow(-300px 0 0px #${para}) !important;
}

.xd_pro_ys .xd_proys_con .pro_ys_list li .pro_ys_txt>i{
border-bottom: 3px solid #${para} !important;
}

        </style>`

    $('body').append(css)

});