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
的代码如下,용${}作为分割符,利用了数组