世界之窗论坛's Archiver

liutwqc 发表于 2007-5-26 14:08

帮我写个..过滤黑名单,谢谢.

过滤这个
谢谢[code]
<div align="left"  style="clear: both;">
<script src="include/javascript/floatadv.js" type="text/javascript"></script>
<script type="text/javascript">
theFloaters.addItem('floatAdv',6,'document.body.clientHeight-80','<a href=\"http://www.yichang.cyberpolice.cn\" target=\"_blank\"><img src=\"http://www.sanxia.net.cn/images/gongan.gif\" border=\"0\"></a>');theFloaters.play();
</script>
</div>[/code]




是这个网址.
[url=http://bbs.sanxia.net.cn/index.php][color=#800080]http://bbs.sanxia.net.cn/index.php[/color][/url]

不要..左下角.那个小人 !!!

[img]http://www.sanxia.net.cn/images/gongan.gif[/img]

[[i] 本帖最后由 liutwqc 于 2007-5-27 12:46 编辑 [/i]]

duckZCX 发表于 2007-5-26 14:10

最好把网址给我,因为一个页面类似的TAG太多,得做到唯一匹配

单匹配你给出的,很简单,例如这个[code]<div[^>]*?>[\s\S]*?<\/div>[/code]


PS:上面这个是例子,不能用,百分百会出错,但是能匹配你给出的

Aycox 发表于 2007-5-26 14:30

*/floatadv.js

liutwqc 发表于 2007-5-27 12:45

[url]http://bbs.sanxia.net.cn/index.php[/url]


是这个网址.
不要..左下角.那个小人 !!!

[img]http://www.sanxia.net.cn/images/gongan.gif[/img]

duckZCX 发表于 2007-5-27 12:52

滚动下鼠标滚轮就不见了:)

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.