yourphp点击刷新验证码
加入css
<script type="text/javascript" src="./Public/Js/my.js"></script> 没有这段js的话,无法刷新验证码
html代码
<div class="f3"><input name="verifyCode" id="verifyCode" size="7" value="" maxlength="4" class="inp1"/></div> <div class="f4"><img src="{:U('Home/Index/verify')}" onclick="javascript:resetVerifyCode();" class="checkcode" align="absmiddle" title="{:L('resetVerifyCode')}" id="verifyImage" height="25"/></div>