從新浪弄下來(lái)的全屏廣告代碼 與使用說(shuō)明
更新時(shí)間:2007年03月15日 00:00:00 作者:
<!--全屏開始--><!--interstitial begin-->
<SCRIPT language=JavaScript>
<!--
//時(shí)間計(jì)算
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--><!--全屏結(jié)束-->
說(shuō)明新浪主要是根據(jù)時(shí)間段來(lái)顯示不同的廣告,然后將動(dòng)態(tài)控制iframe來(lái)顯示廣告
有個(gè)重要的文件
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]為圖片地址
<SCRIPT language=JavaScript>
<!--
//時(shí)間計(jì)算
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--><!--全屏結(jié)束-->
說(shuō)明新浪主要是根據(jù)時(shí)間段來(lái)顯示不同的廣告,然后將動(dòng)態(tài)控制iframe來(lái)顯示廣告
有個(gè)重要的文件
http://ad4.sina.com.cn/sina/ae/ad_src/fullscreen/fullscreenv2.html
的代碼如下,用${}作為分割符,利用了數(shù)組
復(fù)制代碼 代碼如下:
<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]為圖片地址
相關(guān)文章
從新浪弄下來(lái)的全屏廣告代碼 與使用說(shuō)明
從新浪弄下來(lái)的全屏廣告代碼 與使用說(shuō)明...2007-03-03突破winxp sp2/win2003 sp2超強(qiáng)彈窗代碼
超強(qiáng)彈出代碼,廣告聯(lián)盟專用的代碼2008-09-09js退彈 IE關(guān)閉時(shí)彈出廣告代碼,可以防止屏蔽
IE廣告防屏蔽代碼.目前能過(guò)大多數(shù)基于IE內(nèi)核的瀏覽器. 至于他非IE瀏覽器就可以忽略了.2008-07-07點(diǎn)下網(wǎng)頁(yè)的任意地方,都可到達(dá)指定頁(yè)面的js代碼
點(diǎn)下網(wǎng)頁(yè)的任意地方,都可到達(dá)指定頁(yè)面的js代碼...2007-03-03javascript實(shí)現(xiàn)的多條新聞公告系統(tǒng)
javascript實(shí)現(xiàn)的多條新聞公告系統(tǒng)...2007-08-08