php汉字转码 GBK到Big5编码转换

原创
2016-07-25 08:53:421386浏览
  1. //php汉字转码
  2. class qswhBig5{
  3. var $qswhData;
  4. function qswhBig5($filename="qswhBig5.php"){
  5. $this->qswhData=file($filename);
  6. }
  7. function qswhStr($gb,$fail="??"){
  8. /******(qiushuiwuhen 2002-9-6)******/
  9. $ret="";
  10. for($i=0;$i if(($p=ord(substr($gb,$i,1)))>127){
  11. $q=ord(substr($gb,++$i,1));
  12. $tmp=$this->qswhData[$p-128];
  13. for($j=0;$j=$q)break;
  14. if($k==$q)$q=chr(hexdec(substr($tmp,$j+2,2))).chr(hexdec(substr($tmp,$j+4,2)));
  15. else if($fail=="")$q=chr($p).chr($q); else $q=$fail;
  16. }
  17. else
  18. $q=chr($p);
  19. $ret.=$q;
  20. }
  21. return $ret;
  22. }
  23. function qswhFile($filename,$fail="??"){
  24. /******(qiushuiwuhen 2002-9-6)******/
  25. if(!file_exists($filename.".qswh"))copy($filename,$filename.".qswh");
  26. $fp=fopen($filename,"r+");
  27. $tmp=fread($fp,filesize($filename));
  28. rewind($fp);
  29. fwrite($fp,$this->qswhStr($tmp,$fail));
  30. fclose($fp);
  31. }
  32. function qswhDir($dirname,$fail="??"){
  33. /******(qiushuiwuhen 2002-9-6)******/
  34. $d = dir($dirname);
  35. while($entry=$d->read()) {
  36. if($entry=="."||$entry=="..")continue;
  37. $entry=$dirname."//m.sbmmt.com/m/".$entry;
  38. if(is_dir($entry))
  39. $this->qswhDir($entry,$fail);
  40. else{
  41. if(substr($entry,-5)!=".qswh")$this->qswhFile($entry,$fail);
  42. }
  43. }
  44. $d->close();
  45. return $c;
  46. }
  47. }
复制代码

使用范例:

  1. $words="秋水无恨";

  2. $qswh=new qswhBig5("qswhBig5.php"); //qswhBig5.php,可省参数

  3. echo("

    请选择编码Big5查看:".$qswh->qswhStr($words));<li>echo("/n编码一目录:".$qswh->qswhDir("test"));<li>echo("/n编码一文件:".$qswh->qswhFile("index.htm"));</p><li></ol></div><em onclick="copycode($('code_L1e'));">复制代码</em></div><p>使用说明: qswhStr中第二个参数代表如果没有对应的Big5将替换的字,如果为空,则保留该字。 将文件格式化后,记得要修改<meta中的content-type为Big。</p></td></tr></table> </div> <div id="comment_46681" class="cm"> </div> <div id="post_rate_div_46681"></div> <br><br></div><div class="nphpQianMsg"><a href="//m.sbmmt.com/m/search?word=php汉字转码gbk到big5编码转换">php汉字转码 GBK到Big5编码转换</a><a href="//m.sbmmt.com/m/course/list/29/type/2.html">PHP课程</a><a href="//m.sbmmt.com/m/course/list/11.html">HTML视频教程</a><a href="//m.sbmmt.com/m/course/list/12.html">CSS视频</a><a href="//m.sbmmt.com/m/course/list/17.html">JS视频教程</a><a href="//m.sbmmt.com/m/course/list/18.html">Vue视频教程</a><div class="clear"></div></div><div class="nphpQianSheng"><span>声明:</span>本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。</div><!-- <div class="nphpFen"><span><a href="javascript:;"><b></b>分享</a></span><em class="icon1"><b></b>收藏</em><i class="icon1"><b></b>点赞</i><div class="clear"></div></div> --></div><script type="text/javascript" src="//m.sbmmt.com/sw/hezuo/16e561434ad42f17963b25d80a9fabeb.html" ></script><div class="nphpSytBox"><span>上一条:<a class="dBlack" href="//m.sbmmt.com/m/faq/315439.html">php mb_convert_encoding文字编码转换函数 </a></span><span>下一条:<a class="dBlack" href="//m.sbmmt.com/m/faq/315441.html">php为图片增加背景实例代码 </a></span></div><!-- <div class="wwads-cn wwads-horizontal" data-id="164" style="max-width:640px"></div> --><div class="_f3u1sc934us"></div><script type="text/javascript"> (window.slotbydup = window.slotbydup || []).push({ id: "u6878819", container: "_f3u1sc934us", async: true }); </script><!-- 多条广告如下脚本只需引入一次 --><script type="text/javascript" src="//m.sbmmt.com/m//m.sbmmt.com/cpro/ui/cm.js" async="async" defer="defer" ></script><div class="nphpSytBox1"><div class="nphpShou"><a href="//m.sbmmt.com/m/k.html" class="aRed"><b class="icon2"></b><em>【24期】《PHP小白到大牛》线上班,开始报名了!</em><span></span></a><div class="clear"></div></div><ul class="nphpBian"><li><a href="//m.sbmmt.com/m/blog/detail/1046940.html"><span class="bg1"></span><dl><dt>编程学习群</dt><dd>技术答疑交流</dd></dl><div class="clear"></div></a></li><li><a href="javascript:window.location.href = 'https://mp.weixin.qq.com/s?__biz=Mzk0MTE2MDU0Ng==&mid=2247487529&idx=1&sn=f4f9feda0951312daebe69478f219e7a&chksm=c2d7f124f5a0783233d879a6de3c59165dc2520e15813860b5bace817a6e08e530d454abd3c6#rd';"><span class="bg2"></span><dl><dt>关注公众号</dt><dd>获取学习资源</dd></dl><div class="clear"></div></a></li><div class="clear"></div></ul></div><div class="nphpSytBox2"><div class="nphpZbktTitle"><h2>相关文章</h2><em><a href="//m.sbmmt.com/m/article.html" class="bBlack"><i>查看更多</i><b></b></a></em><div class="clear"></div></div><ul class="nphpXgwzList"><!-- <li><b></b><a href="//m.sbmmt.com/jump/go.php?url=https%3A%2F%2Fm.sbmmt.com%2Fvip_mobile.html" class="aBlack" style="color: red;" rel="nofollow">❤️‍🔥共22门课程,总价3725元,会员免费学</a><div class="clear"></div></li> --><!-- <li><b></b><a href="//m.sbmmt.com/jump/go.php?url=https%3A%2F%2Fm.php.cn%2Farticle%2F496353.html" class="aBlack" style="color: red;" rel="nofollow">❤️‍🔥接口自动化测试不想写代码?</a><div class="clear"></div></li> --><li><b></b><a href="//m.sbmmt.com/m/faq/562264.html" class="aBlack">PHP实现开源RabbitMQ SDK</a><div class="clear"></div></li><li><b></b><a href="//m.sbmmt.com/m/faq/562267.html" class="aBlack">PHP实现开源Flink实时计算</a><div class="clear"></div></li><li><b></b><a href="//m.sbmmt.com/m/faq/562295.html" class="aBlack">PHP实现开源Zookeeper分布式协调服务</a><div class="clear"></div></li><li><b></b><a href="//m.sbmmt.com/m/faq/562291.html" class="aBlack">CodeIgniter 4 vs Symfony 4:哪个PHP框架更适合新手?</a><div class="clear"></div></li><li><b></b><a href="//m.sbmmt.com/m/faq/562293.html" class="aBlack">Laravel vs Symphony:哪个框架更适合ORM?</a><div class="clear"></div></li></ul></div><script type="text/javascript" src="//m.sbmmt.com/sw/hezuo/cf85c41f1b0ce5f8359e5229784c31e4.html" ></script><div class="nphpSytBox2"><div class="nphpTjkcTitle"><ul class="nphpTjkcMenu menu1"><li class="current">热门课程</li><div class="clear"></div></ul><div class="clear"></div></div><div class="nphpRmkcBox" style="padding-top:0px;"><ul class="nphpRmkcList"><li><a href="//m.sbmmt.com/m/course/1421.html"><img data-src="//m.sbmmt.com/img/upload/course/000/000/001/6292e3ff192a9960.png" alt="Laravel 9 学习正当时—保姆级教程,想学不会都难!" class="lazyload" src="//m.sbmmt.com/img/upload/course/000/000/001/6292e3ff192a9960.png" onerror="this.src='/static/mobimages/moren/236_132.png'"/></a><dl><dt><a href="//m.sbmmt.com/m/course/1421.html" title="Laravel 9 学习正当时—保姆级教程,想学不会都难!" class="aBlack">Laravel 9 学习正当时—保姆级教程,想学不会都难!</a></dt><dd><span><em><h2>¥259</h2><i>¥279</i><div class="clear"></div></em><p>已抢62104个</p></span><b><a href="//m.sbmmt.com/m/course/1421.html">抢</a></b><div class="clear"></div></dd></dl><div class="clear"></div></li><li><a href="//m.sbmmt.com/m/course/1413.html"><img data-src="//m.sbmmt.com/img/upload/course/000/000/068/626a7835292d3241.jpg" alt="千万级数据并发解决方案(理论+实战)" class="lazyload" src="//m.sbmmt.com/img/upload/course/000/000/068/626a7835292d3241.jpg" onerror="this.src='/static/mobimages/moren/236_132.png'"/></a><dl><dt><a href="//m.sbmmt.com/m/course/1413.html" title="千万级数据并发解决方案(理论+实战)" class="aBlack">千万级数据并发解决方案(理论+实战)</a></dt><dd><span><em><h2>¥289</h2><i>¥299</i><div class="clear"></div></em><p>已抢110786个</p></span><b><a href="//m.sbmmt.com/m/course/1413.html">抢</a></b><div class="clear"></div></dd></dl><div class="clear"></div></li><li><a href="//m.sbmmt.com/m/course/1467.html"><img data-src="//m.sbmmt.com/img/upload/course/000/000/068/63368f77cf7bb697.png" alt="自己动手写 PHP MVC 框架(40节精讲/巨细/新人进阶必看)" class="lazyload" src="//m.sbmmt.com/img/upload/course/000/000/068/63368f77cf7bb697.png" onerror="this.src='/static/mobimages/moren/236_132.png'"/></a><dl><dt><a href="//m.sbmmt.com/m/course/1467.html" title="自己动手写 PHP MVC 框架(40节精讲/巨细/新人进阶必看)" class="aBlack">自己动手写 PHP MVC 框架(40节精讲/巨细/新人进阶必看)</a></dt><dd><span><em><h2>¥59</h2><i>¥199</i><div class="clear"></div></em><p>已抢46705个</p></span><b><a href="//m.sbmmt.com/m/course/1467.html">抢</a></b><div class="clear"></div></dd></dl><div class="clear"></div></li><li><a href="//m.sbmmt.com/m/course/1289.html"><img data-src="//m.sbmmt.com/img/upload/course/000/000/015/61500a97859e7795.jpg" alt="通用后台管理系统实战开发(Thinkphp6+Layui)" class="lazyload" src="//m.sbmmt.com/img/upload/course/000/000/015/61500a97859e7795.jpg" onerror="this.src='/static/mobimages/moren/236_132.png'"/></a><dl><dt><a href="//m.sbmmt.com/m/course/1289.html" title="通用后台管理系统实战开发(Thinkphp6+Layui)" class="aBlack">通用后台管理系统实战开发(Thinkphp6+Layui)</a></dt><dd><span><em><h2>¥89</h2><i>¥99</i><div class="clear"></div></em><p>已抢133480个</p></span><b><a href="//m.sbmmt.com/m/course/1289.html">抢</a></b><div class="clear"></div></dd></dl><div class="clear"></div></li><li><a href="//m.sbmmt.com/m/course/184.html"><img data-src="//m.sbmmt.com/img/upload/course/000/000/068/6253ed7d8aa4e723.png" alt="php开发验证码最新视频教程" class="lazyload" src="//m.sbmmt.com/img/upload/course/000/000/068/6253ed7d8aa4e723.png" onerror="this.src='/static/mobimages/moren/236_132.png'"/></a><dl><dt><a href="//m.sbmmt.com/m/course/184.html" title="php开发验证码最新视频教程" class="aBlack">php开发验证码最新视频教程</a></dt><dd><span><em><h2>¥79</h2><i>¥99</i><div class="clear"></div></em><p>已抢32268个</p></span><b><a href="//m.sbmmt.com/m/course/184.html">抢</a></b><div class="clear"></div></dd></dl><div class="clear"></div></li><li><a href="//m.sbmmt.com/m/course/1099.html"><img data-src="//m.sbmmt.com/img/upload/course/000/000/068/6250d27b3c089226.jpg" alt="PHP爬虫采集课程" class="lazyload" src="//m.sbmmt.com/img/upload/course/000/000/068/6250d27b3c089226.jpg" onerror="this.src='/static/mobimages/moren/236_132.png'"/></a><dl><dt><a href="//m.sbmmt.com/m/course/1099.html" title="PHP爬虫采集课程" class="aBlack">PHP爬虫采集课程</a></dt><dd><span><em><h2>¥89</h2><i>¥169</i><div class="clear"></div></em><p>已抢14010个</p></span><b><a href="//m.sbmmt.com/m/course/1099.html">抢</a></b><div class="clear"></div></dd></dl><div class="clear"></div></li></ul></div><div class="wwads-cn wwads-horizontal" data-id="164" style="max-width:100%"></div><div class="nphpShou2"><a href="//m.sbmmt.com/m/app/" class="aRed"><b></b><em>打开APP,随时随地在线学习!</em><span></span></a><div class="clear"></div></div></div></div><!--主体 end--><!--底部菜单--><div class="nphpFoot" id="nphpFoot" style="display:none;"><div class="nphpApp"><div class="nphpAppIn"><span onclick="$('.nphpApp').hide()"></span><dl><dt><a href="//m.sbmmt.com/m/mk.html?article_bottom" title="PHP实战集训营" class="aBlack">PHP实战集训营</a></dt><dd>零基础 · 英语差 ·学历低 · 都能学</dd></dl><i><a style="width: 86px;" href="//m.sbmmt.com/m/mk.html?index" title="立即报名">立即报名</a></i><div class="clear"></div></div></div></div><!--底部菜单--><!--右侧菜单--><div class="nphpYouBox" style="display: none;"><div class="nphpYouBg"><div class="nphpYouTitle"><span onclick="$('.nphpYouBox').hide()"></span><a href="//m.sbmmt.com/m/"></a><div class="clear"></div></div><ul class="nphpYouList"><li><a href="//m.sbmmt.com/m/"><b class="icon1"></b><span>首页</span><div class="clear"></div></a></li><li><a href="//m.sbmmt.com/m/course.html"><b class="icon2"></b><span>课程</span><div class="clear"></div></a></li><li><a href="//m.sbmmt.com/m/article.html"><b class="icon3"></b><span>文章</span><div class="clear"></div></a></li><li><a href="//m.sbmmt.com/m/wenda.html"><b class="icon4"></b><span>问答</span><div class="clear"></div></a></li><li><a href="//m.sbmmt.com/m/blog.html"><b class="icon5"></b><span>博客</span><div class="clear"></div></a></li><li><a href="//m.sbmmt.com/m/dic.html"><b class="icon6"></b><span>词典</span><div class="clear"></div></a></li><li><a href="//m.sbmmt.com/m/course/type/99.html"><b class="icon7"></b><span>手册</span><div class="clear"></div></a></li><li><a href="//m.sbmmt.com/m/xiazai/"><b class="icon8"></b><span>资源</span><div class="clear"></div></a></li><li><a href="//m.sbmmt.com/m/search"><b class="icon9"></b><span>搜索</span><div class="clear"></div></a></li><li><a href="//m.sbmmt.com/m/app/"><b class="icon10"></b><span>APP下载</span><div class="clear"></div></a></li><li><a href="//m.sbmmt.com/m/mk.html"><b class="icon11"></b><span>PHP培训</span><em>新</em><div class="clear"></div></a></li><div class="clear"></div></ul></div></div><!--右侧菜单 end--><!--顶部导航--><div class="nphpDing" style="display: none;"><div class="nphpDinglogo"><a href="//m.sbmmt.com/m/faq/#"></a></div><div class="nphpNavIn1"><div class="swiper-container nphpNavSwiper1"><div class="swiper-wrapper"><div class="swiper-slide"><a href="//m.sbmmt.com/m/" >首页</a></div><div class="swiper-slide"><a href="//m.sbmmt.com/m/course.html" >课程</a></div><div class="swiper-slide"><a href="//m.sbmmt.com/m/map.html">路径</a></div><div class="swiper-slide"><a href="//m.sbmmt.com/m/article.html" class="hover">文章</a></div><div class="swiper-slide"><a href="//m.sbmmt.com/m/mk.html" title="PHP培训">PHP培训</a><b></b></div><div class="swiper-slide"><a href="//m.sbmmt.com/m/coding.html">精品课</a></div><div class="swiper-slide"><a href="//m.sbmmt.com/m/xiazai" >下载</a></div><div class="clear"></div></div></div><script> var swiper = new Swiper('.nphpNavSwiper1', { slidesPerView : 'auto' }); </script></div></div><!--顶部导航 end--></div><script>var href = window.location.href; var title = document.title; var num = Math.floor(Math.random() * 10000 + 1); var newscript = document.createElement('script'); newscript.setAttribute('type','text/javascript'); newscript.setAttribute('src',"https://count.php.cn/index.php/api/statistics/phpcn?url="+encodeURIComponent(href)+"&title="+encodeURIComponent(title)+"&"+num); var head = document.getElementsByTagName('head')[0]; head.appendChild(newscript); (function () { var bp = document.createElement('script');var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') {bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';} else {bp.src = 'http://push.zhanzhang.baidu.com/push.js';} var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://m.sbmmt.com/hm.js?c0e685c8743351838d2a7db1c49abd56"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script><script>isLogin = 0;</script><script type="text/javascript" src="//m.sbmmt.com/m/static/layui/layui.js"></script><script type="text/javascript" src="//m.sbmmt.com/m/static/js/global.js?4.9.47"></script><script> var returnCitySN = ''; </script><script type="text/javascript" charset="UTF-8" src="//m.sbmmt.com/ip/city.php?sign=db61fc50f02428f17666b39e468291bc"></script><script> var cname = returnCitySN.cname; var cname = cname.split("|"); function setCookie(name,value,iDay){ //name相当于键,value相当于值,iDay为要设置的过期时间(天) var oDate = new Date(); oDate.setDate(oDate.getDate() + iDay); document.cookie = name + '=' + value + ';path=/;domain=.php.cn;expires=' + oDate; } //读cookies function getCookiea(name) { var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)"); if(arr=document.cookie.match(reg)) return arr[2]; else return null; } var ad = getCookiea('ad'); if(ad) { var num = parseInt(ad)+1; } else { var num = 1; } if(num <= 2000) { if( returnCitySN == '' || encodeURIComponent(returnCitySN.cname).indexOf('%E5%8C%97%E4%BA%AC') != -1 ) { $('#nphpFoot').remove(); } else { $('#nphpFoot').show(); $(document).ready(function(){ $('.nphpQianCont').before('<div class="nphpShou"><a href="https://work.weixin.qq.com/kfid/kfc8cc2d6defcf3c202" targe="_blank" style="width:100%;" rel="nofollow" class="aRed"><b class="icon2"></b><em style=" font-style:normal">【'+cname[2]+'】PHP编程学习,咨询领取优惠!</em><span></span></a></div>') }) } setCookie('ad',num,1) } </script></div><script src="https://vdse.bdstatic.com//search-video.v1.min.js"></script><script type="text/javascript" charset="UTF-8" src="https://cdn.wwads.cn/js/makemoney.js" async></script><link rel='stylesheet' id='_main-css' href='//m.sbmmt.com/m/static/css/viewer.min.css' type='text/css' media='all'/><script type='text/javascript' src='//m.sbmmt.com/m/static/js/viewer.min.js?1'></script><script type='text/javascript' src='//m.sbmmt.com/m/static/js/jquery-viewer.min.js'></script><script> jQuery.fn.wait = function (func, times, interval) { var _times = times || -1, //100次 _interval = interval || 20, //20毫秒每次 _self = this, _selector = this.selector, //选择器 _iIntervalID; //定时器id if( this.length ){ //如果已经获取到了,就直接执行函数 func && func.call(this); } else { _iIntervalID = setInterval(function() { if(!_times) { //是0就退出 clearInterval(_iIntervalID); } _times <= 0 || _times--; //如果是正数就 -- _self = $(_selector); //再次选择 if( _self.length ) { //判断是否取到 func && func.call(_self); clearInterval(_iIntervalID); } }, _interval); } return this; } $("table.syntaxhighlighter").wait(function() { $('table.syntaxhighlighter').append("<p class='cnblogs_code_footer'><span class='cnblogs_code_footer_icon'></span></p>"); }); $(document).on("click", ".cnblogs_code_footer",function(){ $(this).parents('table.syntaxhighlighter').css('display','inline-table');$(this).hide(); }); $('.nphpQianCont').viewer({navbar:true,title:false,toolbar:false,movable:false,viewed:function(){$('img').click(function(){$('.viewer-close').trigger('click');});}}); $(function() { $(".nphpFen em").click(function(){ if($(this).hasClass("icon1")){ $(this).removeClass("icon1").addClass("icon2").html("<b></b>已收藏") }else{ $(this).removeClass("icon2").addClass("icon1").html("<b></b>收藏") } }) $(".nphpFen i").click(function(){ if($(this).hasClass("icon1")){ $(this).removeClass("icon1").addClass("icon2").html("<b></b>已点赞") }else{ $(this).removeClass("icon2").addClass("icon1").html("<b></b>点赞") } }) }) </script><script> // function called if wwads is blocked function ABDetected() { document.getElementsByClassName("wwads-cn")[0].insertAdjacentHTML("beforeend", "<style>.wwads-horizontal,.wwads-vertical{background-color:#f4f8fa;padding:5px;min-height:120px;box-sizing:border-box;border-radius:3px;font-family:sans-serif;display:flex;min-width:150px;position:relative;overflow:hidden;}.wwads-horizontal{flex-wrap:wrap;justify-content:center}.wwads-vertical{flex-direction:column;align-items:center;padding-bottom:32px}.wwads-horizontal a,.wwads-vertical a{text-decoration:none}.wwads-horizontal .wwads-img,.wwads-vertical .wwads-img{margin:5px}.wwads-horizontal .wwads-content,.wwads-vertical .wwads-content{margin:5px}.wwads-horizontal .wwads-content{flex:130px}.wwads-vertical .wwads-content{margin-top:10px}.wwads-horizontal .wwads-text,.wwads-content .wwads-text{font-size:14px;line-height:1.4;color:#0e1011;-webkit-font-smoothing:antialiased}.wwads-horizontal .wwads-poweredby,.wwads-vertical .wwads-poweredby{display:block;font-size:11px;color:#a6b7bf;margin-top:1em}.wwads-vertical .wwads-poweredby{position:absolute;left:10px;bottom:10px}.wwads-horizontal .wwads-poweredby span,.wwads-vertical .wwads-poweredby span{transition:all 0.2s ease-in-out;margin-left:-1em}.wwads-horizontal .wwads-poweredby span:first-child,.wwads-vertical .wwads-poweredby span:first-child{opacity:0}.wwads-horizontal:hover .wwads-poweredby span,.wwads-vertical:hover .wwads-poweredby span{opacity:1;margin-left:0}.wwads-horizontal .wwads-hide,.wwads-vertical .wwads-hide{position:absolute;right:-23px;bottom:-23px;width:46px;height:46px;border-radius:23px;transition:all 0.3s ease-in-out;cursor:pointer;}.wwads-horizontal .wwads-hide:hover,.wwads-vertical .wwads-hide:hover{background:rgb(0 0 0 /0.05)}.wwads-horizontal .wwads-hide svg,.wwads-vertical .wwads-hide svg{position:absolute;left:10px;top:10px;fill:#a6b7bf}.wwads-horizontal .wwads-hide:hover svg,.wwads-vertical .wwads-hide:hover svg{fill:#3E4546}</style><a href='https://wwads.cn/page/whitelist-wwads' class='wwads-img' target='_blank' rel='nofollow'><img src='https://creatives-1301677708.file.myqcloud.com/images/placeholder/wwads-friendly-ads.png' width='130'></a><div class='wwads-content'><a href='https://wwads.cn/page/whitelist-wwads' class='wwads-text' target='_blank' rel='nofollow'>为了本站的长期运营,请将我们的网站加入广告拦截器的白名单,感谢您的支持!</a><a href='https://wwads.cn/page/end-user-privacy' class='wwads-poweredby' title='万维广告 ~ 让广告更优雅,且有用' target='_blank'><span>万维</span><span>广告</span></a></div><a class='wwads-hide' onclick='parentNode.remove()' title='隐藏广告'><svg xmlns='http://www.w3.org/2000/svg' width='6' height='7'><path d='M.879.672L3 2.793 5.121.672a.5.5 0 11.707.707L3.708 3.5l2.12 2.121a.5.5 0 11-.707.707l-2.12-2.12-2.122 2.12a.5.5 0 11-.707-.707l2.121-2.12L.172 1.378A.5.5 0 01.879.672z'></path></svg></a>"); }; //check document ready function docReady(t) { "complete" === document.readyState || "interactive" === document.readyState ? setTimeout(t, 1) : document.addEventListener("DOMContentLoaded", t); } //check if wwads' fire function was blocked after document is ready with 3s timeout (waiting the ad loading) docReady(function () { setTimeout(function () { if( window._AdBlockInit === undefined ){ ABDetected(); } }, 3000); }); </script></body></html>