xiuno图片验证码插件(GG_vcode)V1.2
xiunoa 2020-7-17


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>


上传的附件:
最新回复 (75)
全部楼主
  • 1000
    2020-8-15 2
    0
    赞一下
  • 蓝蓝深海
    2020-8-20 3
    0
    回复下载
  • xiaohei
    2020-10-31 4
    0
    可以的
  • xiangxi
    2020-11-24 5
    0
    回复下载
  • syf997
    2020-11-24 6
    0
    回复下载
  • syf888
    2020-11-24 7
    0
    可以的
  • adnim
    2020-11-28 8
    0
    看看
  • asyouwish
    2020-12-1 9
    0
    看看
  • arthur
    2020-12-2 10
    0
    谢谢
  • 飞猪
    2020-12-16 11
    0
    顶起
  • woaini
    2020-12-17 12
    0
    不错
  • xvdongcn
    2020-12-27 13
    0
    谢谢
  • zdxz
    2020-12-28 14
    0
    666
  • zdxz
    2020-12-28 15
    0
    666
  • jiaokai123
    2021-1-1 16
    0
    看看这个
  • woaini
    2021-1-10 17
    0
    不错
  • rin
    2021-3-25 18
    0
    哈哈,不错哦!
  • 153924
    2021-5-29 19
    0
    可以的
  • tenyet
    2021-7-29 20
    0
返回