No Spam
- 授权协议: 未知
- 开发语言:
- 操作系统: 未知
- 软件首页: http://plugins.jquery.com/project/nospam
软件介绍
Description
This jQuery plugin turns an obfuscated e-mail address into a human-readable one. It's lightweight and accepts multiple filtering levels for additional security. No Spam works on mailto links and other HTML elements, automatically detecting which you're applying it to.
Filter Levels
No Spam has two filter levels that determine how your e-mail address should be formatted when it's passed in: low and normal (default).
normal
normal looks for a reversed email address with the at sign (@) to be replaced with two forward slashes (//) and periods (.) to be replaced with single slashes (/). Reversing it provides an extra level of protection. Example: email@example.com should be passed as
moc/elpmaxe//liame
low
low looks for an email address with the at sign (@) to be replaced with two forward slashes (//) and periods (.) to be replaced with single slashes (/). The only difference between low and normal is that low does not require the e-mail to be reversed. This method is still effective and is also more natural to read and type, but still tricky for a bot to untangle. Example: email@example.com should be passed as
email//example/com
Usage
Default (no options)
$('a.email').nospam();
<a target="_blank" rel="nofollow" href="#" rel="moc/elpmaxe//liame" class="email">Email Me!</a> would become Email Me!
Replacing text
$('a.email').nospam({ replaceText: true });
<a target="_blank" rel="nofollow" href="#" rel="moc/elpmaxe//liame" class="email">Email Me!</a> would become email@example.com
Filter level low
$('a.email').nospam({ filterLevel: 'low' });
<a target="_blank" rel="nofollow" href="#" rel="email//example/com" class="email">Email Me!</a> would become email@example.com
Non-link element
$('span.email').nospam(); // always replaces text when not a link
<span>moc/elpmaxe//liame</span> would become email@example.com
Multiple dots (.), Filter Level low
$('span.email').nospam({ filterLevel: 'low' });
<span>firstname/lastname//example/co/uk</span> would become firstname.lastname@example.co.uk
Integration
I created a PHP companion function to No Spam that allows you to wrap an e-mail address in a PHP function that will automatically format it for use with No Spam so you don't have to manually change anything! More details here http://www.leftrightdesigns.com/library/jquery/nospam/php-integration.ph...
常用算法深入学习实录
张子言 / 电子工业出版社 / 2013-10 / 89.00元
对于任何一门编程语言来说,算法都是程序的“灵魂”。正是因为算法如此重要,所以笔者精心编写了本书,希望通过书中的内容引领广大读者一起探讨学习算法的奥秘,带领广大读者真正步入程序开发的高级世界。 本书共分15章,循序渐进、由浅入深地详细讲解算法的核心内容,并通过具体实例的实现过程演练各个知识点的具体用法。本书首先详细讲解算法的基础知识,剖析了将算法称为“程序灵魂”的原因。然后详细讲解算法技术的核......一起来看看 《常用算法深入学习实录》 这本书的介绍吧!
