天天躁日日躁狠狠躁AV麻豆-天天躁人人躁人人躁狂躁-天天澡夜夜澡人人澡-天天影视香色欲综合网-国产成人女人在线视频观看-国产成人女人视频在线观看

從新浪弄下來的全屏廣告代碼 與使用說明

<!--全屏開始--><!--interstitial begin-->
      <SCRIPT language=JavaScript> 
<!--
//時間計算
SYfullscreen=false;
today=new Date();
function testdate()
{
    if(today.getMonth()=='2') //是否為3月
        {
            if(today.getDate()=='15') //是否為15日
            {
<!--725A3E8355CB-->//全屏開始
if(today.getHours()>='14' && today.getHours()<'15')
{    
    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/2007315152115702.jpg';SYfullscreen=true                                

}<!--$$ huiyan/2007-3-15 14:00:01 ~ 2007-3-15 14:59:59/B $-->
<!--4774607C08FD-->//全屏開始
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                            

}<!--$$ raowei/2007-3-15 ~ 2007-3-16 兩天勿撤,謝謝!/B $-->
<!--35F6B37FB5E4-->//全屏開始
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                    

}<!--$$ limeng/2007-3-15 16:00:01 ~ 2007-3-15 16:59:59/B $-->
<!--C5EB1D51E54C-->//全屏開始
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                    

}<!--$$ limeng/2007-3-15 17:00:01 ~ 2007-3-15 17:59:59/B $-->
<!--D4C112442CAF-->//全屏開始
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                

}<!--$$ limeng/2007-3-15 ~ 2007-3-15/B $-->
}}}
testdate();
var MSIE=navigator.userAgent.indexOf("MSIE");
var OPER=navigator.userAgent.indexOf("Opera");
if(SYfullscreen==true)
{
    if (document.all && MSIE!=-1 && OPER==-1) { 
    // this is a 4.x browser, no? 
function changediv(){
    document.getElementById('hiddenLayer').style.display = "block";
    document.getElementById('interstitialFrame').src = adInterPath;
    setTimeout("hidediv()",5000)
}
function hidediv(){
    document.getElementById('hiddenLayer').style.display="none";
    SYtag=2;
}
function showfull(){
    setTimeout("changediv()",2000); 
}
showfull();
    }
}
// -->
</SCRIPT>
      <SCRIPT language=JavaScript> 
<!--
if(SYfullscreen==true)
{
    if (document.all && MSIE!=-1 && OPER==-1) { 
    // this is a 4.x browser, no? 
        document.write('<DIV ID="hiddenLayer" style="display: none; height: 450px;">');

        expandableIframe = '<IFRAME id="interstitialframe" width=750 HEIGHT=450 NORESIZE SCROLLING=No FRAMEBORDER=0 
MARGINHEIGHT=0 MARGINWIDTH=0></IFRAME>';
        document.write(expandableIframe);

}
document.write('</div>');
}
// -->
</SCRIPT>
<!--interstitial end--><!--全屏結束-->
說明新浪主要是根據(jù)時間段來顯示不同的廣告,然后將動態(tài)控制iframe來顯示廣告
有個重要的文件
http://ad4.sina.com.cn/sina/ae/ad_src/fullscreen/fullscreenv2.html
的代碼如下,用${}作為分割符,利用了數(shù)組
復制代碼 代碼如下:
<html><head>
<meta http-equiv="Content-type" content="text/html; charset=gb2312">
<title>新浪廣告</title>
</head>
<body bgcolor=#ffffff topmargin=0 marginheight=0 leftmargin=0 marginwidth=0>
<center>
<script language = Javascript>
var par = location.search.substr(1);
var ary = par.split("${}");

document.writeln("<a href='"  + ary[0] + "' target=_blank><img src=" + ary[1] + " width=750 height=450 border=0></a>");
</script>
</center>
</body></html>

ary[0]為連接地址
ary[1]為圖片地址

JavaScript技術從新浪弄下來的全屏廣告代碼 與使用說明,轉(zhuǎn)載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯(lián)系我們修改或刪除,多謝。

主站蜘蛛池模板: 国产又色又爽又刺激在线播放 | 青青草国产精品久久 | 沟沟人体一区二区 | 日本免费一区二区三区四区五六区 | 色中色辩论区 | 欧美多毛的大隂道 | 竹菊影视一区二区三区 | 亚洲国产精品99久久久久久 | 中文中幕无码亚洲在线 | 吃奶啃奶玩乳漫画 | 全彩acg无翼乌火影忍者 | 伦理片在线线手机版韩国免费6 | 亚洲免费人成 久久 | 忘忧草日本在线WWW日本 | 草久久久久 | 大胸美女洗澡扒奶衣挤奶 | 蜜桃传媒在线播放 | 日本亚欧热亚洲乱色视频 | 秋霞网在线伦理免费 | 91免费永久在线地址 | 欧美gv明星 | 国产成人久久婷婷精品流白浆 | 国内精品自产拍在线少密芽 | 蜜臀亚洲AV永久无码精品老司机 | 国产亚洲精品线视频在线 | 亚洲精品久久久久中文字幕二区 | 国产色精品久久人妻99蜜桃麻豆 | 免费看欧美xxx片 | 豆奶视频在线高清观看 | 亚洲一卡二卡三卡四卡无卡麻豆 | 黄页网址大全免费观看 | 婷婷六月激情综合一区 | 色综合久久88色综合天天提莫 | 你的欲梦裸身在线播放 | 国产欧美日韩综合精品一区二区 | 神马午夜不卡片 | 被强J高H纯肉公交车啊 | 国产成人免费不卡在线观看 | 果冻传媒在线观看资源七夕 | 性色欲情网站IWWW九文堂 | 国产综合在线视频 |