var fullscreenbeforediv = ''; var fullscreenurl1 = 'http://sc.southcn.com/dolphinfile/south/2015/08/0_43.jpg'; var fullscreencreativetype1 = 'picture'; var fullscreenclicktag = '0'=='1'?true:false; var fullscreenwidth1 = parseInt('1000'); var fullscreenheight1 = parseInt('300'); var fullscreenypadding1 = parseInt('0'); var fullscreenfollowscroll1 = '0'=='1'?true:false; var fullscreenautocloseseconds = '5'; var fullscreenshowCloseBtn = '0'=='1'?true:false; var fullscreencloseBtnurl = 'http://'; var fullscreencloseBtnwidth = parseInt('30'); var fullscreencloseBtnheight = parseInt('15'); var fullscreenshowRecycle = '1'=='1'?true:false; var fullscreenurl2 = 'http://sc.southcn.com/dolphinfile/south/2015/09/0_7.jpg'; var fullscreencreativetype2 = 'picture'; var fullscreensubclicktag = '0'=='1'?true:false; var fullscreenwidth2 = parseInt('110'); var fullscreenheight2 = parseInt('110'); var fullscreenxalign2 = 'left'; var fullscreenxpadding2 = parseInt('0'); var fullscreenyalign2 = 'top'; var fullscreenypadding2 = parseInt('50'); var fullscreenfollowscroll2 = '0'=='1'?true:false; var fullscreenshowstyle = 'none'; var bannermonitorlink = "http://"; function _AdSame_getBody() { if (document.compatMode=="CSS1Compat") { return (document.documentElement)? document.documentElement:document.body; } else { return document.body; } } function _AdSame_getBodyScroll(type) { var scroll; if ((type == "vertical")?self.pageYOffset:self.pageXOffset) { scroll = (type == "vertical")?self.pageYOffset:self.pageXOffset; } else if (document.documentElement && ((type == "vertical")?document.documentElement.scrollTop:document.documentElement.scrollLeft)) { scroll = (type == "vertical")?document.documentElement.scrollTop:document.documentElement.scrollLeft; } else if (document.body) { scroll = (type == "vertical")?document.body.scrollTop:document.body.scrollLeft; } return scroll; } function _AdSame_getBodyScrollTop() { if (self.pageYOffset) { var yScroll = self.pageYOffset; } else if (document.documentElement && document.documentElement.scrollTop) { /* Explorer 6 Strict */ var yScroll = document.documentElement.scrollTop; } else if (document.body) { /* all other Explorers*/ 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; } var clickUrl_pd = "http://sgg.southcn.com/c?z=south&la=0&si=9&cg=13&c=82&ci=83&or=340&l=361&bg=362&b=458&u="; var target_pd = "[TARGET]"; var clicktag_pd = "[CLICKTAG]"; var closeSeconds_pd = fullscreenautocloseseconds*1000; var targetDivId_pd = fullscreenbeforediv; var showRecycle_pd = fullscreenshowRecycle; var clicktag1 = fullscreenclicktag; var contentType1_pd = fullscreencreativetype1; var width1_pd = fullscreenwidth1; var height1_pd = fullscreenheight1; var top1_pd = fullscreenypadding1; var left1_pd = _AdSame_getBodyScrollLeft()+(_AdSame_getBody().clientWidth-width1_pd)/2; var creativeUrl1_pd = fullscreenurl1; var iniDisplay1_pd = "block" var followScroll1_pd = fullscreenfollowscroll1; var id1_pd = "flashMainId"; var showClsbtn = fullscreenshowCloseBtn=='1'?true:false; var btnContent = (fullscreencloseBtnurl!='' && fullscreencloseBtnurl!='http://')?true:false; var clsbtnWidth = fullscreencloseBtnwidth; var clsbtnHeight = fullscreencloseBtnheight; var clsbtnUrl = fullscreencloseBtnurl; clsbtnHeight=parseInt(clsbtnHeight,10); var clicktag2 = fullscreensubclicktag; var contentType2_pd = fullscreencreativetype2; var width2_pd = fullscreenwidth2; var height2_pd = fullscreenheight2; var top2_pd = fullscreenyalign2=="top"?fullscreenypadding2:_AdSame_getBody().clientHeight-fullscreenheight2-15-fullscreenypadding2; if(!(fullscreenyalign2=="top") && width2_pd<70){ if(navigator.userAgent.indexOf("Firefox") != -1) top2_pd = _AdSame_getBody().clientHeight-fullscreenheight2-32-fullscreenypadding2; else top2_pd = _AdSame_getBody().clientHeight-fullscreenheight2-30-fullscreenypadding2; } var left2_pd = fullscreenxalign2=="left"?fullscreenxpadding2+_AdSame_getBodyScrollLeft():_AdSame_getBodyScrollLeft()+_AdSame_getBody().clientWidth-fullscreenwidth2-fullscreenxpadding2; var creativeUrl2_pd = fullscreenurl2; var iniDisplay2_pd = fullscreenshowstyle; var followScroll2_pd = fullscreenfollowscroll2; var alwaysShow_pd = fullscreenshowstyle=='block'?1:0; var id2_pd = "flashSubId"; var bwidth; var bheight; var isShown_pd = false; function getContent(contentType, width, height, creativeUrl, clickUrl, target, id, clicktag) { if (contentType=="flash") { var html = "
"; html += ""; html += ""; html += ""; if(clicktag_pd){ html += ""; } html += ""; html += ""; html += ""; html += ""; html += "
"; if(!clicktag && clickUrl && clickUrl!='http://'){ html += ""; html += "
"; html += "
"; } } else { var html = "
"; html += ""; str_pd += getContent(contentType2_pd,width2_pd,height2_pd,creativeUrl2_pd,clickUrl_pd,target_pd,id2_pd,clicktag2); if(width2_pd<70){ str_pd += "
"; str_pd += "
播放
"; str_pd += "
关闭
"; }else{ str_pd += "
"; str_pd += "播放 | "; str_pd += "关闭
"; } str_pd += "
"; } document.write("" +"function "+id1_pd+"_DoFSCommand(command, args) {" +"if (command==\'close\') {close_all_pd();}" +"else if (command==\'replay\') {show_main_pd();}" +"else if (command==\'closeBig\') {close_main_pd();}" +"}" +""); document.write("" +id1_pd+"_DoFSCommand(command, args);" +""); document.write("" +"function "+id2_pd+"_DoFSCommand(command, args) {" +"if (command==\'close\') close_all_pd();" +"else if (command==\'replay\') show_main_pd();" +"else if (command==\'closeBig\') close_main_pd();" +"}" +""); document.write("" +id2_pd+"_DoFSCommand(command, args);" +""); document.write(str_pd); if(bannermonitorlink && bannermonitorlink!='http://') document.write(""); if (showRecycle_pd) { var _AdSame_divsub_pd = document.getElementById('_AdSame_divsub_pd'); if (followScroll2_pd) { window.setInterval(function() { var top2_pd_margin = fullscreenyalign2=="top"?_AdSame_getBodyScrollTop()+ fullscreenypadding2 +"px":_AdSame_getBodyScrollTop()+ _AdSame_getBody().clientHeight- fullscreenheight2-fullscreenypadding2-20 +"px"; _AdSame_divsub_pd.style.top = top2_pd_margin; _AdSame_divsub_pd.style.marginTop ="0px"; var left = fullscreenxalign2=="left"?fullscreenxpadding2+_AdSame_getBodyScrollLeft():_AdSame_getBodyScrollLeft()+_AdSame_getBody().clientWidth-fullscreenwidth2-fullscreenxpadding2; _AdSame_divsub_pd.style.left = (left>0?left:0) + "px"; }, 200); } else { window.setInterval(function() { var left = fullscreenxalign2=="left"?fullscreenxpadding2+_AdSame_getBodyScrollLeft():_AdSame_getBodyScrollLeft()+_AdSame_getBody().clientWidth-fullscreenwidth2-fullscreenxpadding2; _AdSame_divsub_pd.style.left = (left>0?left:0) + "px"; }, 200); } } var divobj_pd = document.createElement("DIV"); divobj_pd.style.width = width1_pd+"px"; divobj_pd.style.height = "1px"; divobj_pd.style.marginLeft = "auto"; divobj_pd.style.marginRight = "auto"; divobj_pd.style.overflow = "hidden"; divobj_pd.style.zIndex = 65535; divobj_pd.id = "_AdSame_divobj_pd"; divobj_pd.style.top = _AdSame_getBodyScrollTop() + fullscreenypadding1 +"px"; divobj_pd.style.marginTop ="0px"; divobj_pd.style.left = (document.documentElement.clientWidth-width1_pd)/2 + "px"; var html = getContent(contentType1_pd,width1_pd,height1_pd,creativeUrl1_pd,clickUrl_pd,target_pd,id1_pd,clicktag1); if (showClsbtn && btnContent) { html += ""; }else if(showClsbtn){ html += ""; } divobj_pd.innerHTML = html; if (targetDivId_pd) { var beforeTarget_pd = document.getElementById(targetDivId_pd); if(!beforeTarget_pd){beforeTarget_pd = document.body.firstChild;} } else { var beforeTarget_pd = document.body.firstChild; } beforeTarget_pd.parentNode.insertBefore(divobj_pd, beforeTarget_pd); if (followScroll1_pd) { var _AdSame_divobj_pd = document.getElementById('_AdSame_divobj_pd'); window.setInterval(function() { var top1_pd_margin = _AdSame_getBodyScrollTop() + fullscreenypadding1 +"px"; _AdSame_divobj_pd.style.top = top1_pd_margin; _AdSame_divobj_pd.style.marginTop ="0px"; var left = document.documentElement.clientWidth/2; _AdSame_divobj_pd.style.left = left + "px"; }, 200); } /* 是否点击关闭,是则不再显示 */ var _AdSame_divsub_close_pd = false; function show_main_pd() { if (isShown_pd) return; isShown_pd = true; divobj_pd.style.display="block"; if (!alwaysShow_pd && showRecycle_pd) _AdSame_divsub_pd.style.display="none"; if (contentType1_pd=="flash" && navigator.userAgent.toLowerCase().indexOf("msie")!=-1) { var flash = document.getElementById(id1_pd); flash.gotoframe(1); flash.play(); } var count = 0; var gap = parseInt(height1_pd/20); var timehd = window.setInterval(function() { if (++count<20) { divobj_pd.style.height = (gap*count)+"px"; } else { isShown_pd = true; if(showClsbtn && btnContent){ divobj_pd.style.height = (height1_pd+clsbtnHeight)+"px"; }else if(showClsbtn){ divobj_pd.style.height = (height1_pd+15)+"px"; }else{ divobj_pd.style.height = height1_pd+"px"; } if(document.getElementById("cls_btn")) document.getElementById("cls_btn").style.display = "block"; clearInterval(timehd); } }, 100); if (closeSeconds_pd>0) window.setTimeout(function () {close_main_pd();}, closeSeconds_pd); } function close_main_pd() { if (!isShown_pd) return; isShown_pd = false; var count = 0; var gap = parseInt(height1_pd/20); isShown_pd = false; divobj_pd.style.height = "1px"; divobj_pd.style.display="none"; if (showRecycle_pd && !_AdSame_divsub_close_pd) _AdSame_divsub_pd.style.display="block"; } function close_all_pd() { divobj_pd.style.display="none"; if (showRecycle_pd) _AdSame_divsub_pd.style.display="none"; _AdSame_divsub_close_pd = true; } function isloaded(){ var f = document.getElementById("flashMainId"); if ((!f) || typeof f.PercentLoaded=="undefined") { return false; } if (parseInt(f.PercentLoaded())==100) { return true; } } if(contentType1_pd == "flash"){ var max = 100, c = 0; var hd = window.setInterval(function (){ if (isloaded() || ++c>max) { window.clearInterval(hd); show_main_pd(); if (closeSeconds_pd>0) window.setTimeout(function () {close_main_pd();}, closeSeconds_pd); } }, 100); } else{ show_main_pd(); if (closeSeconds_pd>0) window.setTimeout(function () {close_main_pd();}, closeSeconds_pd); }