xiuno图片验证码插件(GG_vcode)V1.2,xiuno非官方优化版!修复1.0版本BUG。



这个插件的点击刷新验证码图片的功能,在火狐浏览器下无效:
hook目录下的htm模板
1 | <img src="plugin/GG_vcode/model/vcode.php" onclick="this.src='plugin/GG_vcode/model/vcode.php'">
|
↑↑在火狐浏览器下无效↑↑
解决办法如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 | <p class="input-group">
<span class="input-group-addon" style="padding:0;cursor:pointer;">
<img src="plugin/GG_vcode/model/vcode.php" onClick="refreshImage(this);">
</span>
<input type="text" class="form-control" placeholder="验证码" name="vcode" id="vcode">
</p>
<script type="text/javascript">
function refreshImage(img)
{
var imageUrl = 'plugin/GG_vcode/model/vcode.php'; //验证码url
img.src = imageUrl + '?' + Math.random();
}
</script>
|