验证码图片无法显示怎么回事?
<div class="jmllogin1" id="div_login" style="display:">
<ul>
<li class="spe1"><span id="login_info"></span></li>
<li><input class="user" onfocus="if(this.value=='用户名') {this.value='';}this.style.color='#cccccc';" onblur="if(this.value=='') {this.value='用户名';this.style.color='#ccc';}" value="用户名" type="text" id="userName" /></li>
<li><input class="password" onfocus="if(this.value=='密码') {this.value='';this.type='password';}this.style.color='#cccccc';" onblur="if(this.value=='') {this.value='密码';this.style.color='#ccc';this.type='text';}" value="密码" type="text" id="password" /></li>
</ul>
<li id="li_code" class="nli_code">
<div class="yzm_01">验证码 </div>
<div class="yzmhyh">
<span class="jmlma1"><input style="width:57px; height:16px; line-height:16px; margin:3px 0;" type="text" id="login_validateCode" maxlength="4" onclick="javascript:code_login();" onfocus="javascript:code_login();" onmouseover="javascript:code_login();" onblur="validateRegInfo('code');" /></span>
</div>
<img id="img_authCode1" class="jmlma2 njmlma2" src="__PUBLIC__/images/102914847.jpg" />
<em class="thyh"><a onclick="document.getElementById('img_authCode1').src='__APP__/Base/verify/v/'+Math.random();" style="cursor:pointer;">换一换?</a></em>
</li>
<div class="jmlbtn1"><input type="checkbox" id="autoLogin" checked /><span>下次自动登录</span> | <em><a href="__URL__/findBackPwdPage/" target="_self">忘记密码?</a></em></div>
<div class="jmlbtn2"><input type="button" id="btn_login" value="登录" onclick="login();" /></div>
<div class="jmlren1" >
</div>
</div>usercenter.js代码:
function switchAuthCode(){
$("#img_authCode").attr("src", "/index.php/Base/verify/rand/"+Math.random());
}结果显示:

请问怎么解决?谢谢!
...全文
相关推荐
SpringMVC生成的验证码图片不显示问题及解决方法
主要介绍了SpringMVC生成的验证码图片不显示问题,本文通过实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下
jmeter识别图片验证码的包
jmeter通过调用OCR识别图片验证码,但是识别率不高,有需要的可以试一试能否识别 参考文章http://sanwen.net/a/rmskmpo.html
PHP验证码无法显示的原因及解决办法
PHP验证码无法显示的原因及解决办法 一、如果是utf-8,就有可能是BOM没有清除 二、在Header(“Content-type: image/PNG”); 之前有输出 三、第一行PHP隐藏了代码,如空格,回车等。 解决代码: $image_width=70; //设置图像宽度 $image_height=18; //设置图像高度 $new_number=$_GET[num]; //$new_number=5; $num_image=imagecreate($image_width,$image_height); //创建一个画布 imagecoloral
验证码图片
可用于训练的验证码图片,数量6000+,以验证码图片实际的值命名文件,验证码为6位数。
网页不显示验证码是怎么回事?.docx
网页不显示验证码是怎么回事?.docx


