欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

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

 更新時間:2007年04月07日 00:00:00   作者:  
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.dbjr.com.cn/images/close1.gif\" align=\"absmiddle\" border=\"0\" /></a></div><div style=\" margin-top:4px;marign-left:4px;font-size:12px;color:#092E20\">系統(tǒng)提示:發(fā)現您正在使用IE瀏覽器,強烈推薦您在 Windows 操作系統(tǒng)中使用最安全的瀏覽器: <a href=\"http://www.dbjr.com.cn/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();
    }
}

相關文章

  • js+canvas實現動態(tài)吃豆人效果

    js+canvas實現動態(tài)吃豆人效果

    本文主要介紹了js+canvas實現動態(tài)吃豆人效果的實例。具有很好的參考價值。下面跟著小編一起來看下吧
    2017-03-03
  • JavaScript中的單引號和雙引號報錯的解決方法

    JavaScript中的單引號和雙引號報錯的解決方法

    數據中夾雜單引號(')或者雙引號("),這種語句往往會造成JavaScript報錯。對此一般采用/'或者/"的解決
    2014-09-09
  • 揭秘JavaScript Reduce的用法

    揭秘JavaScript Reduce的用法

    作為高級前端切圖仔,我們經常遇到需要處理、聚合或轉換數據的場景,JavaScript 的reduce()方法是一個強大的工具,它允許我們有效地迭代數組并累積單個值,從而簡化了這些任務,本文將給大家揭秘JavaScript Reduce方法,需要的朋友可以參考下
    2023-09-09
  • JS中substring與substr的用法

    JS中substring與substr的用法

    這篇文章主要介紹了JS中substring與substr的用法講解,非常不錯,具有參考借鑒價值,感興趣的朋友一起看看吧
    2016-11-11
  • JavaScript設計模式經典之命令模式

    JavaScript設計模式經典之命令模式

    命令模式(Command)的定義是:用來對方法調用進行參數化處理和傳送,經過這樣處理過的方法調用可以在任何需要的時候執(zhí)行。接下來通過本文給大家介紹JavaScript設計模式經典之命令模式,需要的朋友參考下
    2016-02-02
  • Bootstrap警告(Alerts)的實現方法

    Bootstrap警告(Alerts)的實現方法

    這篇文章主要為大家詳細介紹了Bootstrap警告(Alerts)的實現方法,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2017-03-03
  • javascript window.onerror事件學習新收獲

    javascript window.onerror事件學習新收獲

    javascript window.onerror事件學習新收獲...
    2007-11-11
  • js實現base64、url和blob之間相互轉換的三種方式

    js實現base64、url和blob之間相互轉換的三種方式

    Blob對象表示一個不可變、原始數據的類文件對象,Blob表示的不一定是JavaScript原生格式的數據,下面這篇文章主要給大家介紹了關于js實現base64、url和blob之間相互轉換的三種方式,需要的朋友可以參考下
    2023-04-04
  • 原來JS還可以這樣拆箱轉換詳解

    原來JS還可以這樣拆箱轉換詳解

    這篇文章主要給大家介紹了關于JS拆箱轉換的相關資料,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧
    2019-02-02
  • JS實現圖片瀑布流效果

    JS實現圖片瀑布流效果

    這篇文章主要為大家詳細介紹了JS實現圖片瀑布流,文中示例代碼介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2021-09-09

最新評論