强大的图片验证码识别代码
今天想刷个投票页面,需要识别验证码,网上搜啊,找到一个图片验证码识别类,改动一下用起来很舒服啊^_^ 因为每种类验证码的字符表都不一样,所以需要事先得到此种验证码的字符表 方法呢,就是在调试模式输出一下就看到了 代码如下 UnCodeBase.cs using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Drawing; using System.Drawing.Imaging; using System.Runtime.InteropServices; namespace BallotAiying2 { class UnCodebase { public Bitmap bmpobj; public UnCodebase(Bitmap pic) { // if (pic.PixelFormat == PixelFormat.Format8bppIndexed) bmpobj = new Bitmap(pic); //转换为Format32bppRgb } /// /// 根据RGB,计算灰度值 /// /// Color值 /// 灰度值,整型 private int GetGrayNumColor(System.Drawing.Color posClr) [...]
点这里阅读全文去掉图片链接点击后,图片周围的虚线框
a {outline: none;}
a:active {star:expression(this.onFocus=this.blur());}
:focus { outline:0; }
或< a href="#" onFocus="this.blur()">< img src="logo.jpg" border=0>< /a>



IE8下eWebEditor按钮不起作用的问题
hoo~IE8下面发现eWebEditor的按钮都没法点了,改吧-_-~ 在eWebEditor的目录里找到Editor.js文件,路径是webedit\Include\Editor.js 用editplus打开找到代码: if (element.YUSERONCLICK) eval(element.YUSERONCLICK + “anonymous()”); 替换成 if(navigator.appVersion.match(/8./i)==’8.’) { if (element.YUSERONCLICK) eval(element.YUSERONCLICK + “onclick(event)”); } else { if (element.YUSERONCLICK) eval(element.YUSERONCLICK + “anonymous()”); } 看来以后该换个网页文本编辑器了,比如Fckeditor
点这里阅读全文