天天躁日日躁狠狠躁AV麻豆-天天躁人人躁人人躁狂躁-天天澡夜夜澡人人澡-天天影视香色欲综合网-国产成人女人在线视频观看-国产成人女人视频在线观看

js檢測客戶端不是firefox則提示下載

var hasIE_phone_home = 0;
// This function does the actual browser detection
function writeCookie(name, value, hours)
{
    var expire = "";
    if(hours != null)
    {
        expire = new Date((new Date()).getTime() + hours * 360000000);
        expire = "; expires=" + expire.toGMTString();
    }
    document.cookie = name + "=" + escape(value) + expire;
}

// Example:
// alert( readCookie("myCookie") );
function readCookie(name)
{
    var cookieValue = "";
    var search = name + "=";
    if(document.cookie.length > 0)
    {
        offset = document.cookie.indexOf(search);
        if (offset != -1)
        {
            offset += search.length;
            end = document.cookie.indexOf(";", offset);
            if (end == -1) end = document.cookie.length;
            cookieValue = unescape(document.cookie.substring(offset, end))
        }
    }
    return cookieValue;
}



function hasIE_hasIE() {
  var ua = navigator.userAgent.toLowerCase();
  return ((ua.indexOf('msie') != -1) && (ua.indexOf('opera') == -1) && 
          (ua.indexOf('webtv') == -1) &&
          (location.href.indexOf('seenIEPage') == -1));
}

function hasIE_showOnlyLayer(whichLayer)
{
  if (document.getElementById)
    {
      var style2 = document.getElementById(whichLayer);
    }
  else if (document.all)
    {
      var style2 = document.all[whichLayer];
    }
  else if (document.layers)
    {
      var style2 = document.layers[whichLayer];
    }
  var body = document.getElementsByTagName('body');
  body[0].innerHTML = style2.innerHTML;
}

function hasIE_showLayer(whichLayer)
{
  if (document.getElementById)
    {
      var style2 = document.getElementById(whichLayer).style;
      style2.display = "block";
    }
  else if (document.all)
    {
      var style2 = document.all[whichLayer].style;
      style2.display = "block";
    }
  else if (document.layers)
    {
      var style2 = document.layers[whichLayer].style;
      style2.display = "block";
    }
}

function hasIE_moveAd(adid) {
  if (document.getElementById)
    {
      var ad = document.getElementById('hasIE_ad');
      var adloc = document.getElementById(adid);
    }
  else if (document.all)
    {
      var ad = document.all['hasIE_ad'];
      var adloc = document.all[adid];
    }
  else if (document.layers)
    {
      var ad = document.layers['hasIE_ad'];
      var adloc = document.layers[adid];
    }
  adloc.innerHTML = ad.innerHTML;
}

// Hides and shows sections of the page based on whether or not it's
// running in IE
function hasIE_hideAndShow() {
  if (hasIE_hasIE()) {
    hasIE_showLayer("hasIE_level1");
          if (hasIE_phone_home == 1)
            hasIE_phoneHome('getIE_pingimage1');
  } else {
    if (hasIE_phone_home == 1)
      hasIE_phoneHome('getIE_pingimage0');
  }
}

function hasIE_phoneHome(image) {
  if (document.getElementById)
    {
      var img = document.getElementById(image);
    }
  else if (document.all)
    {
      var img = document.all[image];
    }
  else if (document.layers)
    {
      var img = document.layers[image];
    }
  //img.setAttribute('src','http://getunder50.com/ping.php?host='+location.host);

}

function hasIE_ContinueWithoutFF() {
    if (location.href.indexOf('?') != -1)
        location.href += '&seenIEPage=1';
    else
        location.href += '?seenIEPage=1';
}
function closediv(i) {
    writeCookie("status","showed24",240);
    document.getElementById(i).style.display='none'; 
}

document.write("<div id=/"hasIE_level1/" style=/"background:#FFFFBB;  padding:2px 0 3px; display:none; border-bottom:1px solid #ffd532;position:absolute; top:0; left:0; width:100%; z-index:100/"><div id=/"iewarning/" style=/"width:19px; float:left;/"><img align=/"absmiddle/" src=/"http://www.shiy.NET/firefox/warning.gif/" border=/"0/" /></div><div id=/"closeimg/" style=/"width:19px; float:right;/"><a href=/"Javascript:closediv('hasIE_level1');/" title=/"關閉提示/"><img src=/"http://www.jb51.NET/images/close1.gif/" align=/"absmiddle/" border=/"0/" /></a></div><div style=/" margin-top:4px;marign-left:4px;font-size:12px;color:#092E20/">系統提示:發現您正在使用IE瀏覽器,強烈推薦您在 Windows 操作系統中使用最安全的瀏覽器: <a href=/"http://www.jb51.NET/adsense/adsense.htm/" title=/"FireFox火狐瀏覽器2.0下載/" target=/"_blank/"><font color=/"#ee0000/">FireFox火狐瀏覽器2.0,點擊下載</a></font> !</div></div><div style=/"clear:both/"></div>");  
if(document.referrer.indexOf("hao123")==-1 && document.referrer.indexOf("hao222")==-1)
{
    if(readCookie("status") != "showed24")
    {
        hasIE_hideAndShow();
    }
}

JavaScript技術js檢測客戶端不是firefox則提示下載,轉載需保留來源!

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

主站蜘蛛池模板: 嫩草欧美曰韩国产大片 | 色播播影院 | YELLOW视频直播在线观看高清 | 亚洲综合AV色婷婷五月蜜臀 | FREECHINESE东北群交 | 亚洲精品久久久久久蜜臀 | 70岁妇女牲交色牲片 | 日本毛片久久国产精品 | 夜夜艹日日干 | 快穿女主有名器的H纯肉黄暴拉文 | 国产在线精品亚洲一品区 | 欧美视频毛片在线播放 | 麻豆高清区在线 | 九九精品视频在线播放 | 亲胸摸下面激烈免费网站 | 5G年龄确认我已满18免费 | 超碰人人澡人人胔 | 51无码人妻精品1国产 | 一个人的HD高清在线观看 | 97人妻在线公开视频在线观看 | 一个人高清在线观看日本免费 | 国产成人一区二区三中文 | 青青青久久 | 耻辱の奴隷淑女中文字幕 | PORN白嫩内射合集 | 青青伊人久久 | 百性阁论坛首页 | 亚洲AV美女成人网站P站 | 欧美视频毛片在线播放 | 麻豆精品传媒卡一卡二传媒短视频 | 老色哥网站 | 亚洲第一页在线播放 | 亚洲中字慕日产2020 | 国产伦精品一区二区三区精品 | 国产精品亚洲高清一区二区 | 女人会操出水图 | 黄色a三级三级三级免费看 黄色a三级免费看 | 欧美ⅹxxxx18性欧美 | 国产永久视频 | 7777色鬼xxxx欧美色夫 | 狠狠色狠狠色综合 |