新浪刚打开页面出来的全屏广告代码

2016-02-19 10:02 81 1 收藏

下面是个简单易学的新浪刚打开页面出来的全屏广告代码教程,图老师小编详细图解介绍包你轻松学会,喜欢的朋友赶紧get起来吧!

【 tulaoshi.com - Web开发 】

!--XAD_STARTX--
table width=760 border=0 cellspacing=0 cellpadding=0trtd style="text-align:center"!--全屏开始--
!--interstitial begin--
script language="JavaScript" 
!--
//时间计算
SYfullscreen=false;
today=new Date();
function testdate()
{
    if(today.getMonth()=='3') //是否为4月
        {
            if(today.getDate()=='2') //是否为2日

            {
!--A5745EA6E29D--//全屏开始
if(today.getHours()='8' && today.getHours()'9')
{    
    adInterPath='http://ad4.sina.com.cn/sina/ae/ad_src/fullscreen/fullscreenv2.html?http://ad.cn.doubleclick.net/clk;93805227;16509919;t?http://www-900.ibm.com/lenovoinfo/cn/promotion/t60/index.shtml${}http://ad4.sina.com.cn/200704/01/86609_homepage-full-screen-750x45.jpg';SYfullscreen=true                                    
}!--$$ zhuyan/2007-4-2 8:00:01 ~ 2007-4-2 8:59:59/B $--
!--8285FF5C4355--//全屏开始
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=75882,108025,108145&cid=0,0,0&sid=100374&advid=3750&camid=14562&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?${}http://ad4.sina.com.cn/200703/31/86568_750450sinashou_quanping_xtl_0402.jpg';SYfullscreen=true                                    
}!--$$ limeng/2007-4-2 14:00:01 ~ 2007-4-2 14:59:59/B $--
!--B84A5994BBC2--//全屏开始
if(today.getHours()='15' && today.getHours()'16')
{    
    adInterPath='http://ad4.sina.com.cn/sina/ae/ad_src/fullscreen/fullscreenv2.html?http://sina.allyes.com/main/adfclick?db=sina&bid=75476,107585,107704&cid=0,0,0&sid=99961&advid=2946&camid=14496&show=ignore&url=http://ad.cn.doubleclick.net/clk;88882501;16222262;g?http://www.cadillac.com.cn/?http://www.cadillac.com.cn/adcampaign/campRedirect.asp?rsid=1${}http://ad4.sina.com.cn/200703/30/86386_cadillac-hp-0402-qp.jpg';SYfullscreen=true                                    
}!--$$ laojr/2007-4-2 15:00:01 ~ 2007-4-2 15:59:59/B $--
!--FD003BB2C5CB--//全屏开始
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=75655,107782,107902&cid=0,0,0&sid=100144&advid=2596&camid=14536&show=ignore&url=http://ad.cn.doubleclick.net/clk;94651959;16552362;v${}http://ad4.sina.com.cn/200703/30/86488_hsbc-hp-0402-qp.jpg';SYfullscreen=true                                    
}!--$$ laojr/2007-4-2 17:00:01 ~ 2007-4-2 17:59:59/B $--
!--512379652C91--//全屏开始
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=76124,108286,108406&cid=0,0,0&sid=100622&advid=2546&camid=14613&show=ignore&url=http://ad.cn.doubleclick.net/clk;91875638;16432190;q${}http://ad4.sina.com.cn/200704/02/86703_junyue-hp-0402-qp.jpg';SYfullscreen=true                                    
}!--$$ laojr/2007-4-2 16:00:01 ~ 2007-4-2 16:59:59/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--
!--全屏结束--/td/tr/table
!--XAD_ENDX--

来源:https://www.tulaoshi.com/n/20160219/1593120.html

延伸阅读
去掉标题栏: requestWindowFeature(Window.FEATURE_NO_TITLE); API上是这么说的: int     FEATURE_NO_TITLE     Flag for the "no title" feature, turning off the title at the top of the screen. 屏幕全屏: getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); API上是这么说的...
标签: Web开发
-关闭
  Here's how to save a web page as a single file (mht format) using Delphi code: uses CDO_TLB, ADODB_TLB;... procedure WB_SaveAs_MHT(WB: TWebBrowser; FileName: TFileName); var Msg: IMessage; Conf: IConfiguration; Stream: _Stream; URL : widestring; begin if not Assigned(WB.Document) the...
标签: Web开发
第一个:  Untitled Document [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]   第二个: [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
标签: Web开发
为了避免ASP程序和HTML代码混写造成维护困难的情况,本文介绍了一种方法,利用模板来分离程序和页面,使程序设计更加轻松。    在使用ASP制作一个站点的时候,常常会出现一个ASP文件中,程序代码和HTML代码混合的情况。这样子做有许多缺点:    1. 且不说编程时就要对页面布局进行设计和编排,造成代码混...

经验教程

484

收藏

56
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部