//在页面增加一个放置图标的区块
if(!document.getelementbyid('_span_jiucuo'))
document.write("");
//获取放置图标的区块
var span_msg = document.getelementbyid("_span_jiucuo");
//获取站点标识码
var sitecode = document.getelementbyid("_jiucuo_").attributes["sitecode"].value;
//生成纠错图标及点击链接
span_msg.innerhtml = "";
//点击图标
function link(site_code) {
//获取该站点需要纠错页面的url地址
var url = getcurrurl();
url = decodeuricomponent(url);
url = decodeuricomponent(url);
url = decodeuricomponent(url);
url = encodeuricomponent(url).replace(/%257b/g, '%7b');
url = url.replace(/%257d/g, '%7d');
// var arr = url.split('?');
// var origin = encodeuricomponent(arr[0] + '?');
// url = arr.length > 1 ? origin + arr[1] : origin;
//跳转至纠错系统填写页面
window.open("https://zfwzgl.www.gov.cn/exposure/jiucuo.html?site_code=" + site_code + "&url=" + url);
}
//获取该站点需要纠错页面的url地址
function getcurrurl() {
var url = "";
if (parent !== window) {
try {
url = window.top.location.href;
} catch (e) {
url = window.top.document.referrer;
}
}
if (url.length == 0)
url = document.location.href;
return url;
}