找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1082|回复: 0

新浪首页全屏显示广告代码

[复制链接]

2074

主题

6459

回帖

45万

积分

管理员

夏天啊·····

积分
452930

王子的皇冠大富翁大众宠儿外太空使者社区居民

QQ
发表于 2006-4-14 10:52:21 | 显示全部楼层 |阅读模式
<SPAN style="FONT-SIZE: 12px" twffan="done">&amp;lt;table width=760 border=0 cellspacing=0 cellpadding=0&amp;gt;<BR>&amp;lt;tr&amp;gt;<BR>&amp;lt;td align=center&amp;gt;&amp;lt;!--interstitial begin--&amp;gt;<BR>&amp;lt;script language="&amp;#106avascript"&amp;gt; <BR>&amp;lt;!--<BR>//时间计算<BR>SYfullscreen=false;<BR>today=new Date();<BR>function testdate()<BR>{<BR>&amp;lt;!--D339B424C314--&amp;gt;<BR>//全屏开始如果是9点到10则显示下面的图片<BR>if(today&#46;getHours()&amp;gt;='1' &amp;&amp; today&#46;getHours()&amp;lt;'23')<BR>{    <BR>    adInterPath='http://auto&#46;263&#46;net/auto_lib/file/dealer/yfstudio/jl/flash/300-300kanche&#46;swf';SYfullscreen=true                                    <BR>}<BR>&amp;lt;!--A67C2659380C--&amp;gt;<BR>//全屏开始如果是10点到11点则是下面的图片<BR>if(today&#46;getHours()&amp;gt;='0' &amp;&amp; today&#46;getHours()&amp;lt;'1')<BR>{    <BR>    adInterPath='http://auto&#46;263&#46;net/auto_lib/file/dealer/yfstudio/jl/flash/468-95&#46;swf';SYfullscreen=true                                    <BR>}<BR>}<BR>testdate();<BR><BR>if(SYfullscreen==true)<BR>{<BR>    if (document&#46;all) { <BR>    // this is a 4&#46;x browser, no? <BR>    document&#46;write('&amp;lt;SCRI'   'PT LANGUAGE="&amp;#106avascript1&#46;2"'); <BR>    document&#46;writeln(' SRC="time&#46;js"&amp;gt;&amp;lt;/SCR'   'IPT&amp;gt;'); //显示时间与停留时间的js文件路径<BR>    }<BR>}<BR>// --&amp;gt;<BR>&amp;lt;/script&amp;gt;<BR>&amp;lt;script language="&amp;#106avascript"&amp;gt; <BR>&amp;lt;!--<BR>if(SYfullscreen==true)<BR>{<BR>    if (document&#46;all) { <BR>    // this is a 4&#46;x browser, no? <BR>        document&#46;write('&amp;lt;DIV ID="hiddenLayer" style="display: none; height: 450px;"&amp;gt;');<BR>        if (getsGlu) {<BR>        expandableIframe = '&amp;lt;IFRAME id="interstitialframe" width=750 HEIGHT=450 NORESIZE SCROLLING=No FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0&amp;gt;&amp;lt;/IFRAME&amp;gt;';<BR>        document&#46;write(expandableIframe);<BR>    }<BR>}<BR>document&#46;write('&amp;lt;/div&amp;gt;');<BR>}<BR>// --&amp;gt;<BR>&amp;lt;/script&amp;gt;<BR>------------------------------------<BR>上面的放在body下面其中有一个外部引用的js文件,<BR>--------------------------------<BR>var ads_agt=navigator&#46;userAgent&#46;toLowerCase();<BR>var ads_is_major = parseInt(navigator&#46;appVersion);<BR><BR>var ads_is_ie = ((ads_agt&#46;indexOf("msie") != -1) &amp;&amp; (ads_agt&#46;indexOf("opera") == -1) &amp;&amp; (ads_agt&#46;indexOf("omniweb") == -1));<BR>var ads_is_ie3 = (ads_is_ie &amp;&amp; (ads_is_major &amp;lt; 4));<BR>var ads_is_ie4 = (ads_is_ie &amp;&amp; (ads_is_major == 4) &amp;&amp; (ads_agt&#46;indexOf("msie 5")==-1) &amp;&amp; (ads_agt&#46;indexOf("msie 6")==-1));<BR>var ads_is_ie4up = (ads_is_ie &amp;&amp; (ads_is_major &amp;gt;= 4));<BR>var ads_is_ie5 = (ads_is_ie &amp;&amp; (ads_is_major == 4) &amp;&amp; (ads_agt&#46;indexOf("msie 5&#46;0")!=-1) );<BR>var ads_is_ie5up = (ads_is_ie &amp;&amp; !ads_is_ie3 &amp;&amp; !ads_is_ie4);<BR>var ads_is_ie5_1_macbeta = (ads_is_ie &amp;&amp; (ads_agt&#46;indexOf("mac")!=-1) &amp;&amp; (ads_agt&#46;indexOf("5&#46;1b")!=-1));<BR><BR>var ads_is_nav = ((ads_agt&#46;indexOf('mozilla')!=-1) &amp;&amp; (ads_agt&#46;indexOf('spoofer')==-1)<BR>            &amp;&amp; (ads_agt&#46;indexOf('compatible') == -1) &amp;&amp; (ads_agt&#46;indexOf('opera')==-1)<BR>            &amp;&amp; (ads_agt&#46;indexOf('webtv')==-1));<BR>var ads_is_nav6 = (ads_is_nav &amp;&amp; (ads_agt&#46;indexOf("netscape6")!=-1) &amp;&amp; (ads_agt&#46;indexOf("6&#46;1")==-1));<BR>var ads_is_nav6up = (ads_is_nav &amp;&amp; !ads_is_nav4 &amp;&amp; !ads_is_nav3 &amp;&amp; !ads_is_nav2);<BR>var ads_is_nav6_1 = (ads_is_nav &amp;&amp; (ads_agt&#46;indexOf("netscape6")!=-1) &amp;&amp; (ads_agt&#46;indexOf("6&#46;1")!=-1));<BR>var ads_is_nav6_1up = (ads_is_nav &amp;&amp; !ads_is_nav6 &amp;&amp; !ads_is_nav4 &amp;&amp; !ads_is_nav3 &amp;&amp; !ads_is_nav2);<BR><BR><BR>getsGlu = ((ads_is_ie5up &amp;&amp; !ads_is_ie5_1_macbeta) || ads_is_nav6_1up);<BR><BR><BR>//function changediv(depth)<BR>//{<BR>//    divAll&#46;style&#46;zIndex=depth<BR>//    }<BR>function changediv()<BR>{<BR>    document&#46;getElementById('hiddenLayer')&#46;style&#46;display = "block";<BR>    document&#46;getElementById('interstitialFrame')&#46;src = adInterPath;<BR>    setTimeout("hidediv()",10000)<BR>}<BR>function hidediv()<BR>{<BR>    document&#46;getElementById('hiddenLayer')&#46;style&#46;display="none";<BR>    SYtag=2;<BR>}<BR>function showfull()<BR>{<BR>setTimeout("changediv()",3000);<BR>}<BR>showfull()<BR>-----------------------------------<BR>js文件内容 </SPAN>
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Enjoy Game

GMT+8, 2024-12-27 13:16 , Processed in 0.089173 second(s), 26 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表