function _AdSame_getBody() { if (document.compatMode=="CSS1Compat") { return (document.documentElement) ? document.documentElement : document.body; } else { return document.body; } } function _AdSame_getBodyScrollTop() { if (self.pageYOffset) { var yScroll = self.pageYOffset; } else if (document.documentElement && document.documentElement.scrollTop) { var yScroll = document.documentElement.scrollTop; } else if (document.body) { var yScroll = document.body.scrollTop; } return yScroll; } function _AdSame_getBodyScrollLeft() { if (self.pageYOffset) { var xScroll = self.pageXOffset; } else if (document.documentElement && document.documentElement.scrollLeft) { /* Explorer 6 Strict*/ var xScroll = document.documentElement.scrollLeft; } else if (document.body) { /* all other Explorers*/ var xScroll = document.body.scrollLeft; } return xScroll; } function _AdSame_getBrowerWeight(){ if(window.innerWidth){ return window.innerWidth; }else if(document.documentElement&&document.documentElement.clientWidth){ return document.documentElement.clientWidth; }else if(document.body){ return document.body.clientWidth; } return 0; } function _AdSame_getFlashCode(w, h, c, u, t, n, ct) { var html = "
"; html += ""; html += ""; html += ""; html += ""; html += ""; html += "
"; if (!ct) { html += ""; html += "
"; html += "
"; } return html; } function _AdSame_getImgCode(w, h, c, u, t, n) { var html = "
"; html += ""; html += "
"; return html; } function _AdSame_getCloseButton(html, w, h, a, c, dt, dl, id, hide) { html = "
"+html+"
关闭
"; return html; } function _AdSame_getReplayButton(html, w, h, a, c, dt, dl, id, hide) { html = "
"+html+"
重播
"; return html; } var xpadding = parseInt("200"); var ypadding = parseInt("200"); var width = parseInt("120"); var height = parseInt("270"); var qsbk=""; var target = "_blank"; var main_content_width = parseInt("200"); var textcolor = "#000000"; var followScroll = "1"=='1'?true:false; var contentType = 'picture'; var clicktag = '0'=='1'?true:false; var creativeUrl1 = "http://sc.southcn.com/dolphinfile/south/2018/01/0_4.jpg"; var creativeUrl2 = "http://sc.southcn.com/dolphinfile/south/2018/01/0_5.jpg"; var divid = ""; var collapseflag = "0"=='1'?1:0; var subcontentType = "picture"; var subclicktag = '0'=='1'?true:false; var subwidth = parseInt("200"); var subheight = parseInt("200"); var subcreativeUrl = "http://"; var subcreativeUrl_right = "http://"; var autocloseseconds = "0"; var bannermonitorlink = "http://"; if (subcreativeUrl_right=="") subcreativeUrl_right = subcreativeUrl; var clickUrl = "http://sgg.southcn.com/c?z=south&la=0&si=9&cg=18&c=194&ci=185&or=1042&l=1075&bg=1076&b=1223&u=http://zq.gdltax.gov.cn/zqtax/index.shtml"; var ld_left = xpadding; var rd_left = _AdSame_getBody().clientWidth-width-xpadding; var ld_top = ypadding; var rd_top = ypadding; var collapse_hd = null; var collapse_status = 1; if (contentType=="flash") { var html1 = _AdSame_getCloseButton(_AdSame_getFlashCode(width, height, creativeUrl1, clickUrl, target, '', clicktag), width, height, 'left', textcolor, ld_top, -width, '_AdSame_ld'); var html2 = _AdSame_getCloseButton(_AdSame_getFlashCode(width, height, creativeUrl2, clickUrl, target, '', clicktag), width, height, 'right', textcolor, rd_top, -width, '_AdSame_rd'); } else { var html1 = _AdSame_getCloseButton(_AdSame_getImgCode(width, height, creativeUrl1, clickUrl, target, ''), width, height, 'left', textcolor, ld_top, -width, '_AdSame_ld'); var html2 = _AdSame_getCloseButton(_AdSame_getImgCode(width, height, creativeUrl2, clickUrl, target, ''), width, height, 'right', textcolor, rd_top, -width, '_AdSame_rd'); } if (collapseflag) { var ld_left2 = xpadding; var rd_left2 = _AdSame_getBody().clientWidth-subwidth-xpadding; var ld_top2 = ypadding; var rd_top2 = ypadding; if (subcontentType == "flash") { var html3 = _AdSame_getReplayButton(_AdSame_getFlashCode(subwidth, subheight, subcreativeUrl, clickUrl, target, '', subclicktag), subwidth, subheight, 'left', textcolor, ld_top2, -subwidth, '_AdSame_ld2', true); var html4 = _AdSame_getReplayButton(_AdSame_getFlashCode(subwidth, subheight, subcreativeUrl_right, clickUrl, target, '', subclicktag), subwidth, subheight, 'right', textcolor, rd_top2, -subwidth, '_AdSame_rd2', true); } else { var html3 = _AdSame_getReplayButton(_AdSame_getImgCode(subwidth, subheight, subcreativeUrl, clickUrl, target, ''), subwidth, subheight, 'left', textcolor, ld_top2, -subwidth, '_AdSame_ld2', true); var html4 = _AdSame_getReplayButton(_AdSame_getImgCode(subwidth, subheight, subcreativeUrl_right, clickUrl, target, ''), subwidth, subheight, 'right', textcolor, rd_top2, -subwidth, '_AdSame_rd2', true); } } var str = html1+html2; if (collapseflag) { str += html3+html4; } str += ''; if (divid) { var div = document.getElementById(divid); if (div) { if (div.style.position != "absolute" && div.style.position != "relative") div.style.position = "relative"; div.innerHTML += str; } else { document.write(str); } } else { document.write(str); } var ld = document.getElementById('_AdSame_ld'); var rd = document.getElementById('_AdSame_rd'); if (collapseflag) { var ld2 = document.getElementById('_AdSame_ld2'); var rd2 = document.getElementById('_AdSame_rd2'); } window.setInterval(function() { var bw = _AdSame_getBrowerWeight() ; var cw = parseInt(main_content_width) + width*2 + xpadding*2; if(bw < cw){ if (collapse_status == 1) { rd.style.display = ld.style.display = "none"; } else if(collapse_status == 2) { if (collapseflag) { rd2.style.display = ld2.style.display = "none"; } } } else { rd.style.left = (_AdSame_getBodyScrollLeft()+_AdSame_getBody().clientWidth-width-xpadding)+"px"; ld.style.left = _AdSame_getBodyScrollLeft()+xpadding+"px"; if (followScroll) { ld.style.top = ld_top+_AdSame_getBodyScrollTop()+"px"; rd.style.top = rd_top+_AdSame_getBodyScrollTop()+"px"; } if (collapseflag) { rd2.style.left = (_AdSame_getBodyScrollLeft()+_AdSame_getBody().clientWidth-subwidth-xpadding)+"px"; ld2.style.left = _AdSame_getBodyScrollLeft()+xpadding+"px"; if (followScroll) { ld2.style.top = ld_top2+_AdSame_getBodyScrollTop()+"px"; rd2.style.top = rd_top2+_AdSame_getBodyScrollTop()+"px"; } } if (collapse_status == 1) { rd.style.display = ld.style.display = "block"; if (collapseflag) { rd2.style.display = ld2.style.display = "none"; } } else if (collapse_status == 2){ rd.style.display = ld.style.display = "none"; if (collapseflag) { rd2.style.display = ld2.style.display = "block"; } } } }, 200); function closeSymmetry() { window.clearTimeout(collapse_hd); rd.style.display = ld.style.display = "none"; if (collapseflag) { rd2.style.display = ld2.style.display = "block"; }; collapse_status = 2; } function replaySymmetry() { window.clearTimeout(collapse_hd); rd.style.display = ld.style.display = "block"; if (collapseflag) { rd2.style.display = ld2.style.display = "none"; }; collapse_status = 1; adsamesys_adv_startSymmetry(); } function adsamesys_adv_startSymmetry(){ if (collapseflag && autocloseseconds) { collapse_hd = window.setTimeout(function() { rd.style.display = ld.style.display = "none"; rd2.style.display = ld2.style.display = "block"; collapse_status = 2; }, autocloseseconds*1000); }} adsamesys_adv_startSymmetry();