var fullscreenurl1 = 'http://img.jrjimg.cn/2018/11/20181116190350833.jpg'; var fullscreencreativetype1 = 'picture'; var fullscreenclicktag = '0'=='1'?1:0; var fullscreenwidth1 = parseInt('1000'); var fullscreenheight1 = parseInt('350'); var fullscreenypadding1 = parseInt('225'); var fullscreenfollowscroll1 = '0'=='1'?1:0; var fullscreenautocloseseconds = '10'; var fullscreenshowCloseBtn = '1'=='1'?1:0; var fullscreencloseBtnurl = 'http://img.jrjimg.cn/2017/11/20171101102918011.jpg'; var fullscreencloseBtnwidth = parseInt('40'); var fullscreencloseBtnheight = parseInt('40'); var fullscreenshowRecycle = '0'=='1'?1:0; var fullscreenurl2 = 'http://'; var fullscreencreativetype2 = 'picture'; var fullscreensubclicktag = '0'=='1'?1:0; var fullscreenwidth2 = parseInt('100'); var fullscreenheight2 = parseInt('100'); var fullscreenxalign2 = 'left'; var fullscreenxpadding2 = parseInt('0'); var fullscreenyalign2 = 'top'; var fullscreenypadding2 = parseInt('0'); var fullscreenfollowscroll2 = '0'=='1'?1:0; var fullscreenshowstyle = 'none'; 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) { /* 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 = "[URL]"; var target = "[TARGET]"; var clicktag = "[CLICKTAG]"; var closeSeconds = fullscreenautocloseseconds*1000; var showRecycle = fullscreenshowRecycle; var contentType1 = fullscreencreativetype1; var width1 = fullscreenwidth1; var height1 = fullscreenheight1; var top1 = fullscreenypadding1; var left1 = _AdSame_getBodyScrollLeft()+(_AdSame_getBody().clientWidth-width1)/2; var creativeUrl1 = fullscreenurl1; /*var iniDisplay1 = [BONUS]?"none":"block";*/ var iniDisplay1 = "block"; var followScroll1 = fullscreenfollowscroll1; var id1 = "flashMainId"; var showClsbtn = fullscreenshowCloseBtn=='1'?true:false; var clsbtnWidth = fullscreencloseBtnwidth; var clsbtnHeight = fullscreencloseBtnheight; var clsbtnUrl = fullscreencloseBtnurl; var contentType2 = fullscreencreativetype2; var width2 = fullscreenwidth2; var height2 = fullscreenheight2; var top2 = fullscreenyalign2=="top"?fullscreenypadding2:_AdSame_getBody().clientHeight-fullscreenheight2-15-fullscreenypadding2; if(!(fullscreenyalign2=="top") && width2<70){ if(navigator.userAgent.indexOf("Firefox") != -1) top2 = _AdSame_getBody().clientHeight-fullscreenheight2-32-fullscreenypadding2; else top2 = _AdSame_getBody().clientHeight-fullscreenheight2-30-fullscreenypadding2; } var left2 = fullscreenxalign2=="left"?fullscreenxpadding2:_AdSame_getBodyScrollLeft()+_AdSame_getBody().clientWidth-fullscreenwidth2-fullscreenxpadding2; var creativeUrl2 = fullscreenurl2; /*var iniDisplay2 = [BONUS]?"block":fullscreenshowstyle;*/ var iniDisplay2 = fullscreenshowstyle; var followScroll2 = fullscreenfollowscroll2; var alwaysShow = fullscreenshowstyle=="block"?1:0; var id2 = "flashSubId"; var subclicktag = fullscreensubclicktag; function getContent(contentType, width, height, creativeUrl, clickUrl, target, id ,ctag) { if (contentType=="flash") { var html = "
"; html += ""; html += ""; html += ""; html += ""; if(ctag){ html += ""; } html += ""; html += ""; html += ""; if(!ctag){ html += ""; html += "
"; html += "
"; } html += "
"; } else { var html = "
"; html += ""; str += getContent(contentType1,width1,height1,creativeUrl1,clickUrl,target,id1,clicktag); str += "
"; if (showClsbtn) { str += "
"; str += "
"; } str += "
"; if (showRecycle) { str += "
"; str += getContent(contentType2,width2,height2,creativeUrl2,clickUrl,target,id2,subclicktag); str += "
"; if (contentType2=="picture") { if(width2<70){ str += "
"; str += "
播放
"; str += "
关闭
"; }else{ str += "
"; str += "播放 | "; str += "关闭
"; } } str += "
"; } document.write("" +"function "+id1+"_DoFSCommand(command, args) {" +"if (command==\'close\') {close_all();}" +"else if (command==\'replay\') {show_main();}" +"else if (command==\'closeBig\') {close_main();}" +"}" +""); document.write("" +id1+"_DoFSCommand(command, args);" +""); document.write("" +"function "+id2+"_DoFSCommand(command, args) {" +"if (command==\'close\') close_all();" +"else if (command==\'replay\') show_main();" +"else if (command==\'closeBig\') close_main();" +"}" +""); document.write("" +id2+"_DoFSCommand(command, args);" +""); document.write(str); var _AdSame_divmain = document.getElementById('_AdSame_divmain'); if (showRecycle) { var _AdSame_divsub = document.getElementById('_AdSame_divsub'); } if (followScroll1) { window.setInterval(function() { _AdSame_divmain.style.top = top1+_AdSame_getBodyScrollTop()+"px"; var left = _AdSame_getBodyScrollLeft()+(_AdSame_getBody().clientWidth-width1)/2; _AdSame_divmain.style.left = (left>0?left:0)+"px"; }, 200); }else{ setTimeout(function(){ var left = _AdSame_getBodyScrollLeft()+(_AdSame_getBody().clientWidth-width1)/2; _AdSame_divmain.style.left = (left>0?left:0)+"px"; },200); } if (showRecycle) { if (followScroll2) { window.setInterval(function() { _AdSame_divsub.style.top = _AdSame_getBodyScrollTop()+ _AdSame_getBody().clientHeight- fullscreenheight2-fullscreenypadding2 +"px"; _AdSame_divsub.style.marginTop ="0px"; var left = fullscreenxalign2=="left"?fullscreenxpadding2+_AdSame_getBodyScrollLeft():_AdSame_getBodyScrollLeft()+_AdSame_getBody().clientWidth-fullscreenwidth2-fullscreenxpadding2; _AdSame_divsub.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.style.left = (left>0?left:0)+"px"; }, 200); } } function show_main() { _AdSame_divmain.style.top = top1+_AdSame_getBodyScrollTop()+"px"; if (contentType1=="flash" && navigator.userAgent.toLowerCase().indexOf("msie")!=-1) { var flash = document.getElementById(id1); flash.gotoframe(1); flash.play(); } _AdSame_divmain.style.display="block"; if (closeSeconds>0){ window.setTimeout(function () {close_main();}, closeSeconds); } if (!alwaysShow && showRecycle) _AdSame_divsub.style.display="none"; } function close_main() { _AdSame_divmain.style.display="none"; if (showRecycle) _AdSame_divsub.style.display="block"; /* only for sohu*/ if (obj) obj.s = 2; } function close_all() { _AdSame_divmain.style.display="none"; if (showRecycle) _AdSame_divsub.style.display="none"; /* only for sohu*/ if (obj) obj.s = 2; } var obj = null; function call_fc(o) { if (o) obj = o; show_main(); if (closeSeconds>0) { window.setTimeout(function() { close_main(); }, closeSeconds); } } function fc_main(o) { if (typeof call_fc=="function") call_fc(o); } if (typeof AddSchedule=="function") { AD = new ADM("fc", 2); AddSchedule(AD); } else { if (_AdSame_divmain) _AdSame_divmain.style.display = iniDisplay1; if (_AdSame_divsub) _AdSame_divsub.style.display = iniDisplay2; if (iniDisplay1=="block" && closeSeconds>0) { window.setTimeout(function() { close_main(); }, closeSeconds); } }