How does the CAPTCHA from left to right do?

some app or websites use the mouse to pull the slider from left to right, and some have a jigsaw puzzle. Pull a block to the corresponding position and put it together. How do you do these two kinds of CAPTCHA?

Mar.10,2021

to put it simply, it is the combination of the three methods of onmousedown onmousemove onmouseup. You can find a source code with this function and have a look at it.


<!DOCTYPE html>
<html>
<head>
    <title>test</title>
    <link rel="stylesheet" href="http://www.jq22.com/demo/jquerytdyz201801252357/css/slider.css">
    <script type="text/javascript" src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
</head>
<body>
    <div id="sliderLock"></div>
    <script type="text/javascript" src="http://www.jq22.com/demo/jquerytdyz201801252357/js/slider.js"></script>
    <script>
        new SliderLock("-sharpsliderLock",function(){
            alert("");
        }).init();
    </script>
</body>
</html>

the realization idea is actually very simple: drag the picture with the mouse. After releasing the mouse, check whether the position of the picture is the same as the missing one


canvas slider verification code ider_test" rel=" nofollow noreferrer "> ider_test" rel= "nofollow noreferrer" > https://github.com/utali/slid.

Menu