php js实现拖动滑块完成拼图验证码
内置了不同的图片可供拼图
js文件较大,请自行到演示页面查看
XML/HTML Code
- <div class="row main">
- <div class="col-md-12">
- <div class="row" style="margin-top: 30px;">
- <div class="col-sm-12 col-md-6">
- <div class="tncode" style="text-align: center;margin: 100px auto;"></div>
- </div>
- </div>
- </div>
- </div>
PHP Code
- <?php
- require_once dirname(__FILE__).'/TnCode.class.php';
- $tn = new TnCode();
- if($tn->check()){
- $_SESSION['tncode_check'] = 'ok';
- echo "ok";
- }else{
- $_SESSION['tncode_check'] = 'error';
- echo "error";
- }
- ?>
原文地址:http://www.freejs.net/article_jquerywenzi_708.html