评论敏感词过滤代码

2014-03-05 05:25:49 -0500
代码转载自幻龙http://fhl.wodemo.com
原出处笑忘书代码收藏馆http://35230.wodemo.com


隐藏原评论输入框代码


HTML代码


代码演示
过滤"sb", "SB","fuck","傻","我去年买了个","撸","擦","艹","尼玛","狗"

«Newer      Older»

----Comments(7)----
nixanim (@nixanim) | @ at 2015-02-06 04:51:
<script language=JavaScript> var now = new Date(); function GetServerTime() { var urodz = new Date("6/7/2014 08:00:00"); now.setTime(now.getTime()+250); days = (urodz - now) / 1000 / 60 / 60 / 24; daysRound = Math.floor(days); hours = (urodz - now) / 1000/ 60 / 60 - (24 * daysRound); hoursRound = Math.floor(hours); minutes = (urodz - now) / 1000 /60 - (24 * 60 * daysRound) - (60 * hoursRound); minutesRound = Math.floor(minutes); seconds = (urodz - now) / 1000 - (24* 60 * 60 * daysRound) - (60 * 60 * hoursRound) - (60 * minutesRound); secondsRound = Math.round(seconds); document.getElementById("date").innerHTML = daysRound; document.getElementById("time").innerHTML = hoursRound + "小时" + minutesRound + "分钟"+ secondsRound+"秒!"; } setInterval("GetServerTime()",250); </script> 距2014高考还有 <span id="date"></span><span class="white14b">天</span><span id="time"></span>
萧湘 (@cszj) | @ at 2014-12-10 23:50:
你呢
翱翔的雄鹰 (@axdxy) | @ at 2014-03-06 05:12:
→_→呃,别人又没注明转你的我就只注明从别人那转的咯?
笑忘书 (@35230) | @ at 2014-03-06 00:08:
无语,代码都是转我的,怎么不注明
翱翔的雄鹰 (@axdxy) | @ at 2014-03-05 09:36:
注明转载信息是对分享的尊重!
幻龙 (@fhl) | @ at 2014-03-05 08:41:
呃,那个也是我转来的,,,这个,隐藏底部输入框。
<style type="text/css"><!--
form{display:none;}
.wo-entry-section form{display:block;}
--></style>
折柳 (@yeyumeng) | @ at 2014-03-05 05:54:
~\(≧▽≦)/~

Back to home

Subscribe | Register | Login | N