Conversaciones » Peticiones de scripts

How to follow your mouse cursor?

§
Publicado: 4/3/2019

How to follow your mouse cursor?

Hello, could somebody show me how to make a simple script that something will follow a mouse cursor.. For example a text/black box/picture/anything will just follow/stick to your mouse cursor using tampermonkey/greasemonkey scripting..

§
Publicado: 5/3/2019
Editado: 5/3/2019

The full code is:

<!DOCTYPE html>

Follow Mouse!

<style>
    body {
        min-width: 100%;
        min-height: 100%;
    }
    #moveItem {
        width: 75px;
        height: 75px;
        background-color: #FF3333;
        position: absolute;
        border-radius: 50%;
    }
</style>

Publicar respuesta

Inicia sesión para responder.

长期地址
遇到问题?请前往 GitHub 提 Issues。