//首页新闻上tab function setme_xw(n) { var tag = document.getelementbyid("digital_quick_menu_0").getelementsbytagname("a"); var cong = document.getelementbyid("digital_quick_con_0").getelementsbyclassname("box"); for (i = 0; i < tag.length; i++) { tag[i].classname = " "; tag[n].classname = "on"; }; for (i = 0; i < cong.length; i++) { cong[i].style.display = "none"; cong[n].style.display = "block"; } } //首页新闻下tab function setme_xwa(n) { var tag = document.getelementbyid("digital_quick_menu_a").getelementsbytagname("a"); var cong = document.getelementbyid("digital_quick_con_a").getelementsbyclassname("box"); for (i = 0; i < tag.length; i++) { tag[i].classname = " "; tag[n].classname = "on"; }; for (i = 0; i < cong.length; i++) { cong[i].style.display = "none"; cong[n].style.display = "block"; } } //相关下载tab function setme_xw1(n) { var tag = document.getelementbyid("digital_quick_menu_1").getelementsbytagname("span"); var cong = document.getelementbyid("digital_quick_con_1").getelementsbytagname("div"); for (i = 0; i < tag.length; i++) { tag[i].classname = " "; tag[n].classname = "on"; }; for (i = 0; i < cong.length; i++) { cong[i].style.display = "none"; cong[n].style.display = "block"; } } //浮动关闭 function closeewm() { document.getelementbyid("fdewm").style.display = "none"; }; var _act = 1; $.ajax({ type: "post", //提交方式 url: "include/ajaxhandler.ashx", //提交路径 data: { act: _act }, //参数 success: function (result)//成功函数 { var i; var data = json.parse(result); var listr = ""; var liurlstr = ""; var picpath = data.picpath.replace("#", ":"); //全屏轮播图片 //$("#ulqplb").empty(); if (data.lptp_rows.length > 0) { listr = ""; jquery.each(data.lptp_rows, function (i, n) { listr += "
  • \""" + "
    " + n.fnewt + "
  • "; }); $("#ulqplb").html(listr); $('.am-slider').flexslider(); } //宣传图片 if (data.xctp_rows.length > 0) { listr = ""; jquery.each(data.xctp_rows, function (i, n) { //listr += "
  • >\""" // + "
    " + n.fnewt + "
  • "; listr += "\""" + n.fnewt + ""; }) $("#owl-demo").html(listr); $('#owl-demo').owlcarousel({ items: 1, navigation: true, navigationtext: ["上一个", "下一个"], autoplay: true, stoponhover: true }).hover(function () { $('.owl-buttons').show(); }, function () { $('.owl-buttons').hide(); }); } //公司新闻 if (data.gsxw_rows.length > 0) { listr = ""; i = 0; var dtstr = ""; jquery.each(data.gsxw_rows, function (i, n) { if (i == 0) dtstr = "
    " + n.fnewt.substring(0, 32) + "
    "; else listr += "

    " + n.fnewrq + "" + n.fnewt.substring(0, 30) + "

    "; }) listr = dtstr + "
    " + listr + "
    "; $("#digital_quick_con_0 .box:eq(1) .h_news").html(listr); } //公司公告 if (data.gsxw_rows.length > 0) { listr = ""; i = 0; jquery.each(data.gsxw_rows, function (i, n) { if (i < 8) listr += "
  • " + n.fnewrq.slice(-6).substring(0, 5) + "" + n.fnewt + "
  • "; }) $("#con_gsgg").html(listr); } //公开资料 if (data.gkzl_rows.length > 0) { listr = ""; i = 0; jquery.each(data.gkzl_rows, function (i, n) { listr += "
  • " + n.fnewrq.slice(-6).substring(0, 5) + "" + n.fnewt + "
  • "; }) $("#digital_quick_con_1 ul:eq(0)").html(listr); } //招投标 if (data.ztbs_rows.length > 0) { listr = ""; i = 0; jquery.each(data.ztbs_rows, function (i, n) { listr += "

    " + n.fnewrq + "" + n.fnewt + "

    "; }) $("#digital_quick_con_a .box:eq(0) .h_news dd").html(listr); } //行业资讯 if (data.hyxx_rows.length > 0) { listr = ""; i = 0; jquery.each(data.hyxx_rows, function (i, n) { listr += "

    " + n.fnewrq + "" + n.fnewt + "

    "; }) $("#digital_quick_con_a .box:eq(1) .h_news dd").html(listr); } //上级通知 if (data.sjtz_rows.length > 0) { listr = ""; i = 0; jquery.each(data.sjtz_rows, function (i, n) { listr += "

    " + n.fnewrq + "" + n.fnewt + "

    "; }) $("#digital_quick_con_a .box:eq(2) .h_news dd").html(listr); } //安全生产 if (data.aqsc_rows.length > 0) { listr = ""; i = 0; jquery.each(data.aqsc_rows, function (i, n) { listr += "

    " + n.fnewrq + "" + n.fnewt + "

    "; }) $("#digital_quick_con_a .box:eq(3) .h_news dd").html(listr); } //政策法规 if (data.zcfg_rows.length > 0) { listr = ""; i = 0; jquery.each(data.zcfg_rows, function (i, n) { listr += "

    " + n.fnewrq + "" + n.fnewt + "

    "; }) $("#digital_quick_con_a .box:eq(4) .h_news dd").html(listr); } //职称评审 if (data.zcps_rows.length > 0) { listr = ""; i = 0; jquery.each(data.zcps_rows, function (i, n) { listr += "

    " + n.fnewrq + "" + n.fnewt + "

    "; }) $("#digital_quick_con_a .box:eq(5) .h_news dd").html(listr); } //公司资质 if (data.gszz_rows.length > 0) { listr = ""; jquery.each(data.gszz_rows, function (i, n) { listr += "\"""; }) $("#gszzdemo1").html(listr); $("#gszzdemo2").html(listr); } //公司环境 if (data.gshj_rows.length > 0) { listr = ""; jquery.each(data.gshj_rows, function (i, n) { listr += "\"""; }) $("#gszzdemo31").html(listr); $("#gszzdemo32").html(listr); } //公司荣誉 if (data.gsry_rows.length > 0) { listr = ""; jquery.each(data.gsry_rows, function (i, n) { listr += "\"""; }) $("#gszzdemo310").html(listr); $("#gszzdemo320").html(listr); } //信息查询 if (data.xxcx_rows.length > 0) { listr = ""; jquery.each(data.xxcx_rows, function (i, n) { listr += "
  • \""
  • "; }) $("#ulyqlj").html(listr); } //友情链接 if (data.yqlj_rows.length > 0) { listr = ""; jquery.each(data.yqlj_rows, function (i, n) { listr += "" + n.fnewt + "|"; }) $("#div_link").html(listr); } //工程案例 if (data.gcal_rows.length > 0) { listr = ""; jquery.each(data.gcal_rows, function (i, n) { listr += "
  • " + n.fnewt + "\""
  • "; }) $(".h_pic").html(listr); } }, error: function () { alert("程序异常!"); return; } }); $(function () { $('.am-slider').flexslider({ playafterpaused: 3000, animation: "slide", animationloop: true, smoothheight: true, animationspeed: 4000 }); });