色尼玛亚洲综合影院,亚洲3atv精品一区二区三区,麻豆freexxxx性91精品,欧美在线91

站長必須要知道的javascript廣告代碼 原創(chuàng)

參考了sina的代碼,想出來的一個代碼,請大家使用,不要傳播,轉(zhuǎn)載請注明:來自腳本之家
<!--
//時間計算
var showit=false;
var today=new Date();
var urlpath;
function testdate()
{
urlpath='http://www.scripthome.NET/bbs';showit=true
if(today.getHours()>='10' && today.getHours()<'12')
{    
urlpath='http://www.jb51.NET';showit=true
}
}
testdate();

var MSIE=navigator.userAgent.indexOf("MSIE");
var OPER=navigator.userAgent.indexOf("Opera");
if(showit==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 = urlpath;
    setTimeout("hidediv()",5000)
}
function hidediv(){
    document.getElementById('hiddenLayer').style.display="none";
    SYtag=2;
}
function showfull(){
    setTimeout("changediv()",2000); 
}
showfull();
}}
if(showit==true)
{
    if (document.all && MSIE!=-1 && OPER==-1) { 
    // this is a 4.x browser, no? 
        document.write('<DIV ID="hiddenLayer" style="display: none; height: 0">');

        expandableIframe = '<IFRAME id="interstitialframe" width=0 HEIGHT=0 NORESIZE SCROLLING=No FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0></IFRAME>';
        document.write(expandableIframe);
}
document.write('</div>');
}
// -->

JavaScript技術(shù)站長必須要知道的javascript廣告代碼 原創(chuàng),轉(zhuǎn)載需保留來源!

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請第一時間聯(lián)系我們修改或刪除,多謝。

主站蜘蛛池模板: 砀山县| 象州县| 阳谷县| 普洱| 诏安县| 郧西县| 望江县| 石楼县| 永川市| 泽州县| 池州市| 丰镇市| 宝丰县| 东平县| 汉源县| 肃北| 扎鲁特旗| 民丰县| 大悟县| 常山县| 通城县| 澄城县| 额济纳旗| 托克逊县| 新泰市| 碌曲县| 桃源县| 兴国县| 铜山县| 靖远县| 惠安县| 青川县| 壤塘县| 本溪| 乾安县| 贡嘎县| 白城市| 务川| 怀宁县| 阳山县| 游戏|