日期:2014-05-17  浏览次数:20401 次

如何截取 页面上的验证码图片?
比如 要拉取别的网站上的 验证码,然后显示在自己网页上。

怎么能获取到他的图片的地址呢? 我看页面源代码关于验证码这块如下:
<td width="29%" align="right" class="nei1"><span id="cardpass1">验 证 码:</span></td>

<td width="71%" align="left"><input type="text" name="RndPassword" class="input" size="8" maxlength="4" dataType="LimitB" min="4" max="4" msg="输入验证码"> <script>document.write("<img id=imgVerify align=absMiddle style={cursor:hand;} src='Include/RandPass.asp?",Math.random(),"' onclick='javascript:changeRndImg();'>")</script>&nbsp;</td>


各位帮忙分析下吧,呵呵



------解决方案--------------------
这样做的意义何在,自己做个验证码也不是很困难的事情。
------解决方案--------------------
验证码识别??

------解决方案--------------------
该回复于2010-12-10 13:19:24被版主删除

------解决方案--------------------
用于验证码图片识别的类(C#源码)


------解决方案--------------------
自己直接做个验证码就可以了撒。。。。
------解决方案--------------------
自己做个 

   protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            //生成验证码
            string temp = this.GetCode(4);
            HttpCookie cookie = new HttpCookie("yzm");
            cookie.Value = temp;
            Response.Cookies.Add(cookie);
            //画图