找回密码
 注册
查看: 4367|回复: 7

[转贴] 仿ie警告 Firefox火狐浏览器顶部推荐安装!(不用改文件DZ后台直接加!)

[复制链接]
发表于 2007-11-28 22:24:54 | 显示全部楼层 |阅读模式
在搜索引擎优化-其它头部信息写下面代码就OK了!
自己改一下里面的连接就OK了!
演示:www.meiyadesign.com


  1. <div id='hasIE_level1' style='background:#FFFFBB;display:none;width:100%;BORDER-top:1px double red;BORDER-BOTTOM:1px double red;'>
  2. <div id='iewarning' style='float:left;margin-top:2px;margin-left:3px;'><img align='absmiddle' src='./images/safe.gif' border='0'></div><div id='closeimg' style='float:right;margin-top:5px;margin-right:3px;'><a href='javascript:closediv("hasIE_level1");' title='关闭提示'><img src='./images/close.gif' align='absmiddle' border='0'></a></div><div style='margin-top:2px;margin-bottom:2px;marign-left:4px;font-size:12px;color:#092E20'>系统提示:发现您正在使用IE内核的浏览器,强烈推荐您在Windows操作系统中使用最安全的firefox浏览器,远离病毒木马、间谍流氓以及弹窗的侵扰!<a href='http://www.meiyadesign.com/FireFox/index.htm' title='FireFox火狐浏览器2.0下载' target='_blank'><font color='#ee0000'>点击下载FireFox浏览器</a></font></div></div></div><div style='clear:both'></div>
  3. <script type="text/javascript">
  4. var hasIE_phone_home = 0;
  5. function writeCookie(name, value, hours){
  6. var expire = "";
  7. if(hours != null){
  8.   expire = new Date((new Date()).getTime() + hours * 360000000);
  9.   expire = "; expires=" + expire.toGMTString(); }
  10. document.cookie = name + "=" + escape(value) + expire;}
  11. function readCookie(name){
  12. var cookieValue = "";
  13. var search = name + "=";
  14. if(document.cookie.length > 0){
  15.   offset = document.cookie.indexOf(search);
  16.   if (offset != -1){
  17.    offset += search.length;
  18.    end = document.cookie.indexOf(";", offset);
  19.    if (end == -1) end = document.cookie.length;
  20.    cookieValue = unescape(document.cookie.substring(offset, end))}}
  21. return cookieValue;}
  22. function hasIE_hasIE(){
  23.   var ua = navigator.userAgent.toLowerCase();
  24.   return ((ua.indexOf('msie') != -1) && (ua.indexOf('opera') == -1) &&
  25.           (ua.indexOf('webtv') == -1) &&
  26.           (location.href.indexOf('seenIEPage') == -1));}
  27. function hasIE_showOnlyLayer(whichLayer){
  28. if (document.getElementById){var style2 = document.getElementById(whichLayer);}
  29. else if (document.all){var style2 = document.all[whichLayer];}
  30. else if (document.layers){var style2 = document.layers[whichLayer];}
  31. var body = document.getElementsByTagName('body');
  32. body[0].innerHTML = style2.innerHTML;}
  33. function hasIE_showLayer(whichLayer){
  34. if (document.getElementById){var style2 = document.getElementById(whichLayer).style;style2.display = "block";}
  35. else if (document.all){var style2 = document.all[whichLayer].style;style2.display = "block";}
  36. else if (document.layers){var style2 = document.layers[whichLayer].style;style2.display = "block";}}
  37. function hasIE_moveAd(adid) {
  38. if (document.getElementById){var ad = document.getElementById('hasIE_ad');var adloc = document.getElementById(adid);}
  39. else if (document.all){var ad = document.all['hasIE_ad'];var adloc = document.all[adid];}
  40. else if (document.layers){var ad = document.layers['hasIE_ad'];var adloc = document.layers[adid];}
  41. adloc.innerHTML = ad.innerHTML;}
  42. function hasIE_hideAndShow(){
  43. if (hasIE_hasIE()){hasIE_showLayer("hasIE_level1");
  44. if (hasIE_phone_home == 1)hasIE_phoneHome('getIE_pingimage1');}
  45. else{if (hasIE_phone_home == 1)hasIE_phoneHome('getIE_pingimage0');}}
  46. function hasIE_phoneHome(image){
  47. if (document.getElementById){var img = document.getElementById(image);}
  48. else if (document.all){var img = document.all[image];}
  49. else if (document.layers){var img = document.layers[image];}}
  50. function hasIE_ContinueWithoutFF(){
  51. if (location.href.indexOf('?') != -1)location.href += '&seenIEPage=1';else location.href += '?seenIEPage=1';}
  52. function closediv(i){
  53. writeCookie("status","showed24",240);document.getElementById(i).style.display='none';}
  54. if(document.referrer.indexOf("hao123")==-1 && document.referrer.indexOf("hao222")==-1){
  55. if(readCookie("status") != "showed24"){hasIE_hideAndShow();}}
  56. lastScrollY=0;
  57. </script>
复制代码
发表于 2007-11-28 22:27:50 | 显示全部楼层
到底是这个FIREFOX值得安装还是不值得安装啊  老大  没看清楚哦
 楼主| 发表于 2007-11-28 22:30:40 | 显示全部楼层
我一直在用,感觉不错,本人推荐大家下载使用!
发表于 2007-11-28 23:33:23 | 显示全部楼层

我也觉得不错```

下东西的时候我一次点十个```慢慢按确定就可以了``很方便
发表于 2007-11-29 00:25:10 | 显示全部楼层
凑合把   以前用过    还有那个欧洲的O什么来着
发表于 2007-11-29 09:07:39 | 显示全部楼层
不知道如何
发表于 2007-12-27 09:23:05 | 显示全部楼层
我倒 是下载了可是很少用,不知道怎么用的
发表于 2008-1-26 02:32:43 | 显示全部楼层
呵呵支持美雅就下吧~
呵呵0.1刀
您需要登录后才可以回帖 登录 | 注册

本版积分规则

本站无意传播任何侵权软件与信息,部分资源为网友搜集或发布,仅供学习和研究使用,请支持正版。站内所发布的资源,如有侵犯你的权益,请联系我们,本站将立即改正或删除。

QQ|Archiver|手机版|小黑屋|联系我们|中华设计论坛 ( 苏ICP备20023187号-1

GMT+8, 2024-11-27 06:28

Powered by Discuz! X3.5

© 2006-2024 Daliang Team.

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