Posts Tagged ‘godaddy

方法一:当浏览器是中文时才隐藏代码,如果是英文浏览器浏览不隐藏 <script> var language = window.navigator.language; if(!language){ language = window.navigator.browserLanguage; } language = language.toLowerCase(); if(language=='zh-cn') document.write('<style>#conash3D0 {display:none}</style>'); </script> 方法二:使用JQuery去广告 <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> <script type="text/javascript"> //< ![CDATA[ $(document).ready(function (){ document.body.removeChild(document.body.firstChild); }); //]]> </script>

分类

归档

ipv6 ready