郭子仪拜寿:进入页面后,会在网站头部出现一幅图片广告,30秒钟后自动消失,这个效果怎样实现的

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/10 06:24:55
进入页面后,会在网站头部出现一幅图片广告,30秒钟后自动消失,这个效果怎样实现的
如sina
谢谢!!

<!-- SUDS_CODE_END -->
<center>
<!--XAD_STARTX-->
<table width=760 border=0 cellspacing=0 cellpadding=0><tr><td align=center><!--全屏开始-->
<!--interstitial begin-->
<script language="JavaScript">
<!--
//时间计算
SYfullscreen=false;
today=new Date();
function testdate()
{
if(today.getMonth()=='7') //是否为8月
{
if(today.getDate()=='17') //是否为17日

{
<!--2B18F27ADCE7-->//全屏开始
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=52381,80359,80430&cid=0,0,0&sid=75581&advid=2818&camid=9629&show=ignore&url=http://ad.bitauto.com:80/adsunion/lnk/;ik=44a8b9a5e7472;pl=pl-27-750450;/?http://www.wdhac.com.cn${}http://ad4.sina.com.cn/200608/15/64291_750450sinashou_quanping_civic_0817.jpg';SYfullscreen=true
}<!--$$ limeng/2006-8-17 14:00:01 ~ 2006-8-17 14:59:59/B $-->
<!--E804DBB64DBD-->//全屏开始
if(today.getHours()>='15' && today.getHours()<'16')
{
adInterPath='http://ad4.sina.com.cn/sina/ae/ad_src/fullscreen/fullscreenv2.html?http://universalmccannafa.allyes.com/main/adfclick?db=universalmccannafa&bid=1389,1352,282&cid=2363,184,1&sid=4541&show=ignore&url=http://www.microsoft.com/china/genuine/default.mspx${}http://ad4.sina.com.cn/200608/02/63071_centipede_750_450.gif';SYfullscreen=true
}<!--$$ nwy/2006-8-17 15:00:01 ~ 2006-8-17 15:59:59/B $-->
<!--C4D6644D1F1C-->//全屏开始
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=52473,80468,80539&cid=0,0,0&sid=75675&advid=2231&camid=11518&show=ignore&url=http://ad.bitauto.com:80/adsunion/lnk/;ik=44c9f4e8d99ef;pl=pl-27-750450;/?http://59.151.0.207/${}http://ad4.sina.com.cn/200608/16/64441_750450sinashou_quanping_zunchi_0817.JPG';SYfullscreen=true
}<!--$$ limeng/2006-8-17 16:00:01 ~ 2006-8-17 16:59:59/B $-->
<!--2C1D89614269-->//全屏开始
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=51834,79733,79804&cid=0,0,0&sid=75024&advid=2574&camid=11549&show=ignore&url=http://ad.bitauto.com:80/adsunion/lnk/;ik=44c471de4ea2e;pl=pl-27-750450;/?http://tech.sina.com.cn/focus/2006haierpc/index.shtml${}http://ad4.sina.com.cn/200608/04/63344_haier_tech_qp.jpg';SYfullscreen=true
}<!--$$ raowei/2006-8-17 ~ 2006-8-17/B $-->
<!--15236F1D9B48-->//全屏开始
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=50529,78141,78214&cid=0,0,0&sid=73657&advid=2581&camid=10367&show=ignore&url=http://www.amd.com.cn/Turion64X2/index.html?sina_homepage_fullscreen${}http://ad4.sina.com.cn/200607/22/62058_sina750X450.jpg';SYfullscreen=true
}<!--$$ nwy/2006-8-17 18:00~ 2006-8-17 19:00/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?
document.write('<SCRI' + 'PT LANGUAGE="javascript1.2"');
document.writeln(' SRC="http://ad4.sina.com.cn/ads/control/interstitial.js"></SCR' + 'IPT>');
}
}
// -->
</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;">');
if (getsGlu) {
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-->
<!--全屏结束--></td></tr></table>
<!--XAD_ENDX-->