>  기사  >  웹 프론트엔드  >  Sina_Advertising Code에서 얻은 전체 화면 광고 코드 및 사용 지침

Sina_Advertising Code에서 얻은 전체 화면 광고 코드 및 사용 지침

WBOY
WBOY원래의
2016-05-16 19:16:311011검색


                                                                                SYfullscreen=false;
today=new Date()
function testdate()
{
if(today.getMonth()=='2') // 3월인지
{
                                                                   ~                     .getHours()>='14' && today.getHours()<' 15')
{
adInterPath='http://ad4.sina.com.cn/sina/ae/ad_src/ fullscreen/fullscreenv2.html?
http://sina.allyes.com/ 메인/adfclick?
db=sina&bid=73474,105318,105433&cid=0,0,0&sid=97875&advid=3716&camid=14291&show=ignore&url= http://61.49.38.5/tzhddoc/index.ht
m${ }/upload/2007315152115702.jpg';SYfullscreen=true   

}
//전체 화면으로 시작
if(today.getHours ()>='8' && today.getHours()< '9')
{
adInterPath='http://ad4.sina.com.cn/sina/ae/ad_src/fullscreen/ fullscreenv2.html
http://sina.allyes.com /main/adfclick?
db=sina&bid=73474,105318,105433&cid=0,0,0&sid=97875&advid=3716&camid=14291&show=ignore&url=http: //61.49.38.5/tzhddoc/index.ht
m$ {}/upload/2007315152115903.JPG';SYfullscreen=true    

}
//전체屏开始
if(today.getHours()>='16' && today.getHours()<'17')
{    
    adInterPath='http://ad4.sina.com.cn/sina/ae/ad_src/fullscreen/fullscreenv2.html?
http://sina.allyes.com/main/adfclick?
db=sina&bid=70483,101960,102064&cid=0,0,0&sid=94712&advid=3254&camid=13506&show=ignore&url=http://www.sagitar.com.cn/${}
/upload/2007315152115985. GIF';SYfullscreen=true                   

}
//전체屏开始
if(today.getHours()>='17' && today.getHours()<'18')
{    
    adInterPath='http://ad4.sina.com.cn/sina/ae/ad_src/fullscreen/fullscreenv2.html?
http://sina.allyes.com/main/adfclick?
db=sina&bid=73214,104975,105088&cid=0,0,0&sid=97562&advid=3705&camid=14237&show=ignore&url=http://adclient.dentsu.com.cn/html
.ng/adspec=Flash&adtype= Single_dui_lian&affiliate=sina&campaignid=842&channel=aoyun_page&log=0¶ms.styles=clickcmd?${}
/upload/2007315152115273.jpg';SYfullscreen=true                 

}
//전체屏开始
if(today.getHours()>='18' && today.getHours()<'19')
{    
    adInterPath='http://ad4.sina.com.cn/sina/ae/ad_src/fullscreen/fullscreenv2.html?
http://sina.allyes.com/main/adfclick?
db=sina&bid=73271,105059,105175&cid=0,0,0&sid=97643&advid=3254&camid=14234&show=ignore&url=http://www.sagitar.com.cn/olympic$
{}/upload/2007315152115162 .jpg';SYfullscreen=true                

}
}}}
testdate();
var MSIE=navigator.userAgent.indexOf("MSIE");
var OPER=navigator.userAgent.indexOf("오페라");
if(SYfullscreen==true)
{
    if (document.all && MSIE!=-1 && OPER==-1) { 
    // 이것은 4.x 브라우저입니다. 아니요 ? 
function changediv(){
    document.getElementById('hiddenLayer').style.display = "block";
    document.getElementById('interstitialFrame').src = adInterPath;
    setTimeout("hidediv()",5000)
}
함수 hidediv(){
    document.getElementById('hiddenLayer').style.display="none";
    SYtag=2;
}
function showfull(){
    setTimeout("changediv()",2000); 
}
showfull();
    }
}
// -->

       



说明新浪主要是根据时间段来显示不同的广告,然后将动态控제조 iframe来显示广告
많은 내용의 문서
http://ad4.sina.com.cn/sina/ae/ad_src/fullscreen/fullscreenv2.html
的代码如下,용${}作为分割符,利用了数组

复主代码 代码如下:



새로운浪广告



<스크립트 언어 = 자바스크립트>
var par = location.search.substr(1);
var ary = par.split("${}");

document.writeln("< ;/a>");




ary[0]为连接地址
ary[1]为图 Images地址
성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.