1. ReCAPTCHA The reCAPTCHA 库 让你可以为网站创建高级的CAPTCHA系统,这个系统其实是用来生成验证信息的,甚至包括语音验证,下图就是个好例子。 当然还有reCAPTCHA 服务可以使用,其提供易用的免费API,值得在你的网站试试。 The reCAPTCHA library allows you to integrate an advanced CAPTCHA system on your website, which helps keep spam bots from posting on your website. The visual CAPTCHA also includes a helpful audio feature. In addition to the reCAPTCHA service, the library also includes an API for the “Mailhide” service which hides emails from spammers. The API is free and easy to implement on your site and also gives back to the community as it translates scanned books. 下载 ReCAPTCHA | 获得 API Key | 文档 2. Akismet Akismet 是个供小站点使用的免费服务,用来修改规范将加入数据库的评论(防止恶意评论)。这个库一直在改善。 Akismet is a free service that can be used on most small sites – or used on larger sites for a small fee. The library works by comparing comments to a database of existing spam comments provided by other users. The library can then decide to flag the comment for mod...
第一种方法: VB光盘的toolsunsupportsystray目录下有一个例子,将此目录复制到硬盘,编译生成一个OCX控件,在自己的程序中使用此控件,可以实现将程序图标放于右下角系统图标区,这方法比调用API要简单得多 第二种方法: 梁洁仪 —- 在很多应用程序中,其操作窗口缩小后将变成一图标放置在系统状态栏中。 —- 为什么有的程序可以缩小成图标呢? —- 对于Windows来说,这些图标并非窗口或程序,它们只是图标,能作出这样的功能,关键在于调用了Windows的API函数Shell_NotifyIcon,在Visual Basic开发环境中,通过其所附带的API浏览器,我们可查找出 Shell_NotifyIcon的声明格式如下: —- Declare Function Shell_NotifyIcon Lib “shell32VBdll” Alias “Shell_NotifyIconA” (ByVal dwMessage As Long, lpData As NOTIFYICONDATA) As Long —- 现把本函数声明中的参数分别说明如下: —- 参数dwMessage为消息设置值,它可以是以下的几个常数值:0、1、2。在程序中为了使用更方便,我们把它们定义为三个常量:NIM_ADD、NIM_MODIFY及NIM_DELETE,本示例中的常量及 Shell_NotifyIcon调用都可以在窗口新建的模块中声明它: Public Const NIM_ADD = 0 //加入图标到系统状态栏中 Public Const NIM_MODIFY = 1 //修改系统状态栏中的图标 Public Const NIM_DELETE = 2 // 删除系统状态栏中的图标 —- 这三个常量的应用将中下文中具体介绍。 —- 参数LpData 用以传入 NOTIFYICONDATA数据结构变量,我们也需要在”模块”中定义其结构如下: Type NOTIFYICONDATA cbSize As Long hWnd As Long uID As Long uFlags As Long uCallbackM...
评论