// javascript document var dynamicloading = { css: function(path){ if(!path || path.length === 0){ throw new error('argument "path" is required !'); } var head = document.getelementsbytagname('head')[0]; var link = document.createelement('link'); link.href = path; link.rel = 'stylesheet'; link.type = 'text/css'; head.appendchild(link); }, js: function(path){ if(!path || path.length === 0){ throw new error('argument "path" is required !'); } var head = document.getelementsbytagname('head')[0]; var script = document.createelement('script'); script.src = path; script.type = 'text/javascript'; head.appendchild(script); } } dynamicloading.css("http://daohang.hunan.gov.cn/images/floatdiv.css"); dynamicloading.css("http://daohang.hunan.gov.cn/images/2015tj_wp_logincommon.css"); dynamicloading.js("http://daohang.hunan.gov.cn/images/2015tj_wp_logincommon.js"); var scripts = document.getelementsbytagname("script"); var scriptargs = scripts[ scripts.length - 1 ].src.substr(scripts[ scripts.length - 1 ].src.lastindexof("?")); //console.log(scripts[ scripts.length - 1 ].src); var getcoords = function(el){ var box = el.getboundingclientrect(), doc = el.ownerdocument, body = doc.body, html = doc.documentelement, clienttop = html.clienttop || body.clienttop || 0, clientleft = html.clientleft || body.clientleft || 0, top = box.top + (self.pageyoffset || html.scrolltop || body.scrolltop ) - clienttop, left = box.left + (self.pagexoffset || html.scrollleft || body.scrollleft) - clientleft return { 'top': top, 'left': left }; }; function getquerystring(name) { var reg = new regexp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = scriptargs.substr(1).match(reg); if(r!=null)return unescape(r[2]); return null; } //alert(scriptargs+"///"+getquerystring("id")); var topcolor = "#"+getquerystring("tc"); var midcolor = "#"+getquerystring("mc"); var chlcolor = "#"+getquerystring("cc"); var textcolor = "#"+getquerystring("ttc"); var siteid = parseint(getquerystring("id"),10); var dposition = parseint(getquerystring("p"),10); var isfgw = parseint(getquerystring("fgw"),10); //alert(dposition); if(topcolor=="#"||topcolor=="#null") topcolor = "#556fb5"; if(midcolor=="#"||midcolor=="#null") midcolor = "#556fb5"; if(chlcolor=="#"||chlcolor=="#null") chlcolor = "#556fb5"; if(textcolor=="#"||textcolor=="#null") {textcolor = "";}else{textcolor = "color:"+textcolor;} //alert(topcolor+"::::::"+midcolor); //console.log((document.documentelement||document.body).scrollwidth); //console.log(dposition); var extendsstring = [ "",//1 "",//2 "",//3 "",//4 " | 旧版网站",//5 "",//6 "",//7 " | 扶贫oa",//8 "",//9 "",//10 "",//11 "",//12 "",//13 "",//14 "",//15 "",//16 "",//17 "| 微门户 ",//18 "",//19 "",//20 "",//21 "",//22 "",//23 "",//24 "",//25 "",//26 "",//27 "",//28 " | 水利邮箱",//29 "",//30 " | 我要投稿",//31 "",//32 "",//33 "",//34 "",//35 "",//36 "",//37 "",//38 "| 后台入口",//39 "",//40 "| 交通邮箱",//41 "",//42 "",//43 "",//44 "",//45 "",//46 "",//47 "",//48 " | 电子邮箱系统",//49 " | 统计邮箱 | rss订阅 | 网站导航| english",//50 "",//51 "",//52 " | 举报投诉 12312",//53 "",//54 "",//55 ""//56 ]; var toppositionx = 0; var iiii=0; function counttop(){ var windowwidth = (document.documentelement||document.body).scrollwidth; toppositionx = windowwidth/2 + dposition; //console.log(toppositionx); var tobj = document.getelementbyid("topsystembtn_id"); tobj.style.left = toppositionx+"px"; var obj = document.getelementbyid("div_topsystem_id"); obj.style.right = (windowwidth - getcoords(tobj).left - tobj.offsetwidth) + "px"; obj.style.top = (tobj.offsetheight) + "px"; var lobj = document.getelementbyid("comm_toplink_id"); lobj.style.right = (windowwidth - tobj.offsetleft + 20) + "px"; //lobj.style.left = (toppositionx - lobj.offsetwidth - 15) + "px"; } function countmid(){ try{ var mbtn = document.getelementbyid("midsystembtn_id"); var mobj = document.getelementbyid("div_midsystem_id"); mobj.style.left = ( getcoords(mbtn).left ) + "px"; mobj.style.top = ( getcoords(mbtn).top + mbtn.offsetheight) + "px"; }catch(o){} } function countposition(){ counttop(); countmid(); } /* var systemdatas = [ {id:1,name:'湖南审计厅',url:'http://hnsjt.hunan.gov.cn/',color:'#c00',isenable:true}, {id:2,name:'湖南法制办',url:'http://fzb.hunan.gov.cn/',color:'#0c0',isenable:true} ]; var xxgkdatas = [ {id:1,name:'湖南审计厅',url:'http://hnsjt.hunan.gov.cn/',color:'#c00',isenable:true}, {id:2,name:'湖南法制办',url:'http://fzb.hunan.gov.cn/',color:'#0c0',isenable:false} ]; */ var systemdatas = [ {id:1,name:'省发展和改革委员会',url:'http://fgw.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省教育厅',url:'http://jyt.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省科学技术厅',url:'http://kjt.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省经济和信息化委员会',url:'http://sjxw.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省民族宗教事务委员会',url:'http://mzw.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省公安厅',url:'http://www.hnga.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省民政厅',url:'http://mzt.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省司法厅',url:'http://sft.hunan.gov.cn',color:'#c00',isenable:true} ,{id:1,name:'省财政厅',url:'http://www.hnczt.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省人力资源和社会保障厅',url:'http://www.hnrst.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省国土资源厅',url:'http://www.gtzy.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省环境保护厅',url:'http://www.hbt.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省住房和城乡建设厅',url:'http://zjt.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省交通运输厅',url:'http://www.hnjt.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省水利厅',url:'http://www.hnwr.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省农业委员会',url:'http://agri.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省林业厅',url:'http://www.hnforestry.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省商务厅',url:'http://www.hunancom.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省文化厅',url:'http://wht.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省卫生计生委',url:'http://wjw.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省审计厅',url:'http://sjt.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省政府外事侨务办',url:'http://wqb.hunan.gov.cn',color:'#c00',isenable:true} ,{id:1,name:'省国资委',url:'http://gzw.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省地方税务局',url:'http://www.hnds.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省工商行政管理局',url:'http://gsj.hunan.gov.cn',color:'#c00',isenable:true} ,{id:1,name:'省质量技术监督局',url:'http://zjj.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省新闻出版广电局',url:'http://xwcbgd.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省体育局',url:'http://www.sports.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省安全生产监督管理局',url:'http://www.hunansafety.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省统计局',url:'http://www.hntj.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省旅游发展委员会',url:'http://lfw.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省粮食局',url:'http://lsj.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省机关事务管理局',url:'http://www.hnhq.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省政府法制办',url:'http://fzb.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省政府金融办',url:'http://jrb.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省人防办',url:'http://rfb.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省政府参事室',url:'http://www.hnscss.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省食品药品监督管理局',url:'http://fda.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省监狱管理局',url:'http://hnjyj.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省档案局',url:'http://sdaj.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'湖南省供销合作总社',url:'http://gxhzs.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省政府发展研究中心',url:'http://fzyj.hunan.gov.cn',color:'#c00',isenable:true} ,{id:1,name:'湖南省地方志',url:'http://dfz.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省知识产权局',url:'http://ipo.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省有色金属管理局',url:'http://www.hnys.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省移民开发局',url:'http://hnymj.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省扶贫办',url:'http://hnsfpb.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省核工业地质局',url:'http://hgydzj.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省煤炭管理局',url:'http://mtglj.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省地勘局',url:'http://hndk.hunan.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省中医药管理局',url:'http://www.hntcm.gov.cn/',color:'#c00',isenable:true} ,{id:1,name:'省煤田地质局',url:'http://mtdzj.hunan.gov.cn',color:'#c00',isenable:true} ,{id:1,name:'省有色地勘局',url:'http://ysdk.hunan.gov.cn/',color:'#c00',isenable:true} ]; var xxgkdatas = [ {id:1,name:'省发展和改革委员会',url:'http://fgw.hunan.gov.cn/xxgk_70899/',color:'#c00',isenable:true} ,{id:1,name:'省教育厅',url:'http://jyt.hunan.gov.cn/sjyt/xxgk/" target=',color:'#c00',isenable:true} ,{id:1,name:'省科学技术厅',url:'http://kjt.hunan.gov.cn/xxgk/',color:'#c00',isenable:true} ,{id:1,name:'省经济和信息化委员会',url:'http://sjxw.hunan.gov.cn/xxgk_71033/',color:'#c00',isenable:true} ,{id:1,name:'省民族宗教事务委员会',url:'http://mzw.hunan.gov.cn/xxgk_71281/',color:'#c00',isenable:true} ,{id:1,name:'省公安厅',url:'http://www.hnga.gov.cn/channel/9/index.html" target=',color:'#c00',isenable:true} ,{id:1,name:'省民政厅',url:'http://mzt.hunan.gov.cn/xxgk/',color:'#c00',isenable:true} ,{id:1,name:'省司法厅',url:'http://sft.hunan.gov.cn/xxgk_71079/',color:'#c00',isenable:true} ,{id:1,name:'省财政厅',url:'http://www.hnczt.gov.cn/xxgk/',color:'#c00',isenable:true} ,{id:1,name:'省人力资源和社会保障厅',url:'http://www.hnrst.gov.cn/xxgk',color:'#c00',isenable:true} ,{id:1,name:'省国土资源厅',url:'http://www.gtzy.hunan.gov.cn/xxgk/',color:'#c00',isenable:true} ,{id:1,name:'省环境保护厅',url:'http://www.hbt.hunan.gov.cn/new/index.html',color:'#c00',isenable:false} ,{id:1,name:'省住房和城乡建设厅',url:'http://zjt.hunan.gov.cn/xxgk/',color:'#c00',isenable:true} ,{id:1,name:'省交通运输厅',url:'http://www.hnjt.gov.cn/xxgk/',color:'#c00',isenable:true} ,{id:1,name:'省水利厅',url:'http://www.hnwr.gov.cn/xxgk/',color:'#c00',isenable:true} ,{id:1,name:'省农业委员会',url:'http://agri.hunan.gov.cn/xxgk/',color:'#c00',isenable:true} ,{id:1,name:'省林业厅',url:'http://www.hnforestry.gov.cn/xxgk_71167/',color:'#c00',isenable:true} ,{id:1,name:'省商务厅',url:'http://www.hunancom.gov.cn/test/xxgk/',color:'#c00',isenable:true} ,{id:1,name:'省文化厅',url:'http://wht.hunan.gov.cn/xxgk/',color:'#c00',isenable:true} ,{id:1,name:'省卫生计生委',url:'http://wjw.hunan.gov.cn/xxgk/',color:'#c00',isenable:true} ,{id:1,name:'省审计厅',url:'http://sjt.hunan.gov.cn/xxgk_71228/',color:'#c00',isenable:true} ,{id:1,name:'省政府外事侨务办',url:'http://wqb.hunan.gov.cn/xxgk/',color:'#c00',isenable:true} ,{id:1,name:'省国资委',url:'http://gzw.hunan.gov.cn/xxgk_71571/',color:'#c00',isenable:true} ,{id:1,name:'省地方税务局',url:'http://hndsj.hunan.gov.cn/sdsj/xxgk/" target=',color:'#c00',isenable:true} ,{id:1,name:'省工商行政管理局',url:'http://gsj.hunan.gov.cn/xxgk" target=',color:'#c00',isenable:true} ,{id:1,name:'省质量技术监督局',url:'http://zjj.hunan.gov.cn/xxgk',color:'#c00',isenable:true} ,{id:1,name:'省新闻出版广电局',url:'http://xwcbgd.hunan.gov.cn/xxgk/',color:'#c00',isenable:true} ,{id:1,name:'省体育局',url:'http://www.sports.gov.cn/xxgk/',color:'#c00',isenable:true} ,{id:1,name:'省安全生产监督管理局',url:'http://www.hunansafety.gov.cn/xxgk/',color:'#c00',isenable:true} ,{id:1,name:'省统计局',url:'http://www.hntj.gov.cn/xxgk" target="_blank',color:'#c00',isenable:true} ,{id:1,name:'省旅游发展委员会',url:'http://lyj.hunan.gov.cn/xxgk_71423/',color:'#c00',isenable:true} ,{id:1,name:'省粮食局',url:'http://www.hunangrain.gov.cn/xxgk/',color:'#c00',isenable:true} ,{id:1,name:'省机关事务管理局',url:'http://www.hnhq.gov.cn/xxgk/" target="_blank',color:'#c00',isenable:true} ,{id:1,name:'省政府法制办',url:'http://fzb.hunan.gov.cn/xxgk_70702/',color:'#c00',isenable:true} ,{id:1,name:'省政府金融办',url:'http://jrb.hunan.gov.cn/xxgk_71626/',color:'#c00',isenable:true} ,{id:1,name:'省人防办',url:'http://rfb.hunan.gov.cn/xxgk_70641/',color:'#c00',isenable:true} ,{id:1,name:'省政府参事室',url:'http://www.hnscss.gov.cn/xxgk/',color:'#c00',isenable:true} ,{id:1,name:'省食品药品监督管理局',url:'http://fda.hunan.gov.cn/xxgk_71325/',color:'#c00',isenable:true} ,{id:1,name:'省监狱管理局',url:'http://hnjyj.hunan.gov.cn/xxgk/" target="_blank',color:'#c00',isenable:true} ,{id:1,name:'省档案局',url:'http://sdaj.hunan.gov.cn/xxgk_70959/',color:'#c00',isenable:true} ,{id:1,name:'湖南省供销合作总社',url:'http://gxhzs.hunan.gov.cn/xxgk/',color:'#c00',isenable:true} ,{id:1,name:'省政府发展研究中心',url:'http://fzyj.hunan.gov.cn/xxgk/" target="_blank',color:'#c00',isenable:true} ,{id:1,name:'湖南省地方志',url:'http://dfz.hunan.gov.cn/xxgk_71525/',color:'#c00',isenable:true} ,{id:1,name:'省知识产权局',url:'http://ipo.hunan.gov.cn/xxgk/',color:'#c00',isenable:true} ,{id:1,name:'省有色金属管理局',url:'http://www.hnys.gov.cn/xxgk/" target="_blank"> '+systemdatas[i].name+''; } //添加头部按钮 var topsystembtn = document.createelement("div"); topsystembtn.id="topsystembtn_id"; topsystembtn.setattribute("style","background-color:"+topcolor+";"); topsystembtn.style.backgroundcolor=topcolor; topsystembtn.innerhtml="省直窗口"; document.body.appendchild(topsystembtn); //添加头部站点列表 var div_topsystem = document.createelement("div"); div_topsystem.setattribute("style", "background:"+ midcolor +";display:none;"); div_topsystem.style.backgroundcolor = midcolor; div_topsystem.style.display = "none"; div_topsystem.id="div_topsystem_id"; div_topsystem.innerhtml = '

省直单位

    '; document.body.appendchild(div_topsystem); document.getelementbyid("unitlist").innerhtml=toplist; //添加登录按钮、简繁、无障碍等功能区 fffstr = ''; if(isfgw==1)fffstr=" | 旧版网站"; var topfunclink = '\ \ ' var newdiv = document.createelement("div"); newdiv.classname="h-login"; newdiv.innerhtml=topfunclink; document.body.appendchild(newdiv); var linkdiv = document.createelement("div"); linkdiv.classname = 'comm_toplink'; linkdiv.id = 'comm_toplink_id'; var departmentemail =""; //设置各单位的邮箱 if(siteid==1){ departmentemail =" 政务邮箱"; } else if(siteid==6){ departmentemail=" 政务邮箱"; }else if(siteid==36){ departmentemail=""; }else{ departmentemail=" 政务邮箱"; } linkdiv.innerhtml = ' 退出|\ 繁體中文|'+ departmentemail + '| 无障碍通道'+extendsstring[siteid-1]+fffstr; linkdiv.setattribute("style",textcolor); document.body.appendchild(linkdiv); //头部鼠标经过事件注册 var t_top = 0; var t_mid = 0; topsystembtn.onmouseover=function(){ cleartimeout(t_top); var obj=document.getelementbyid("div_topsystem_id"); if(obj.style.display=="none"){ obj.style.display="block"; } document.getelementbyid("topsystembtn_id").classname="topsystembtn_hover"; } topsystembtn.onmouseout=function(){ t_top = settimeout('hiddentopsystem()',100); } function hiddentopsystem(){ var obj=document.getelementbyid("div_topsystem_id"); obj.style.display="none"; document.getelementbyid("topsystembtn_id").classname=""; } div_topsystem.onmouseout=function(){ t_top = settimeout('hiddentopsystem()',100); } div_topsystem.onmouseover=function(){ cleartimeout(t_top); } function hiddenmidsystem(){ var obj=document.getelementbyid("div_midsystem_id"); obj.style.display="none"; document.getelementbyid("midsystembtn_id").classname=""; } $(document).ready(function(e) { //栏目切换导航添加 var midlist = ''; var channelname = '信息公开'; var middatas = xxgkdatas; var gendiv = null; if(document.getelementbyid("xxgk_midnav")){ middatas = xxgkdatas; channelname = "信息公开"; gendiv = document.getelementbyid("xxgk_midnav"); }else if(document.getelementbyid("bsfw_midnav")){ middatas = bsfwdatas; channelname = "办事服务"; gendiv = document.getelementbyid("bsfw_midnav"); }else if(document.getelementbyid("hdjl_midnav")){ middatas = hdjldatas; channelname = "互动交流"; gendiv = document.getelementbyid("hdjl_midnav"); } for(var i=0;i '+middatas[i].name+''; } //添加中间按钮 var midsystembtn = document.createelement("div"); midsystembtn.id="midsystembtn_id"; midsystembtn.setattribute("style","background-color:"+chlcolor+";"); midsystembtn.style.backgroundcolor=chlcolor; midsystembtn.innerhtml="省直部门"+channelname; if(null != gendiv){ gendiv.appendchild(midsystembtn); //添加中间频道列表 var div_midsystem = document.createelement("div"); div_midsystem.setattribute("style", "background:"+ chlcolor +";display:none;"); div_midsystem.style.backgroundcolor = chlcolor; div_midsystem.style.display = "none"; div_midsystem.id="div_midsystem_id"; div_midsystem.innerhtml = '
      '; document.body.appendchild(div_midsystem); document.getelementbyid("midunitlist").innerhtml=midlist; //中部鼠标经过事件注册 midsystembtn.onmouseover=function(){ cleartimeout(t_mid); var obj=document.getelementbyid("div_midsystem_id"); if(obj.style.display=="none"){ obj.style.display="block"; } document.getelementbyid("midsystembtn_id").classname="midsystembtn_hover"; } midsystembtn.onmouseout=function(){ t_mid = settimeout('hiddenmidsystem()',100); } div_midsystem.onmouseout=function(){ t_mid = settimeout('hiddenmidsystem()',100); } div_midsystem.onmouseover=function(){ cleartimeout(t_mid); } } }); countposition(); window.onresize=countposition; setinterval("countposition()",100); //漂浮图片 var purl = document.location.href.replace(document.domain,'').replace('http://',''); if(purl=='/index.html'||purl=='/index.htm'||purl=='/'){ document.writeln("
      湖南省政务app"); document.writeln("
    • 相识女网友是男儿身 浙江柯桥破获一起交友诈骗案 2018-06-21
    • 江西鄱阳湖结束春季禁渔期“开湖” 2018-06-21
    • 内蒙古老人体验旅居式养老 变安度晚年为欢度晚年 2018-06-21
    • 想趁假期“捞一把” “李鬼”出租车被查 2018-06-21
    • 男子车站捡走手机 经教育后归还失主 2018-06-21
    • 卫健委回应“共享护士”:将结合各地经验引导规范 2018-06-21
    • 路边的邮筒还有人用吗?34只邮筒只有一封公务信 2018-06-21
    • 广东南雄警方侦破横跨粤皖鲁三省特大制售假货案 2018-06-21
    • 新疆兵团首个国家5A级景区渐迎旅游高峰 2018-06-21
    • 高校学生被"套路贷"逾20万 警方提示树正确消费观 2018-06-20
    • "星星的孩子"圆梦大学:音乐是孤独最好的解药 2018-06-20
    • 51岁高考生的世界:22年参加高考考到两鬓发白 2018-06-20
    • "); }