osbo.com

HTML

CSS

JS

PHP

<?

echo '<!doctype html>
<html>
<head>
    <title>PHP</title>
    <style>
        a
        {
            background-color: rgb(255 0 255 / 0.1);
            color: purple;
        }
        a:hover
        {
            background-color: rgb(0 0 0 / 0.1);
            color: black;
        }
    </style>
</head>
<body>
    <a href="/php/">PHP</a>
    <script>
        function myfunction()
        {
            const mystyle = myelement.style;
            mystyle.position = "absolute";
            mystyle.left = `${Math.random() * (window.innerWidth - myelement.offsetWidth)}px`;
            mystyle.top = `${Math.random() * (window.innerHeight - myelement.offsetHeight)}px`;
        }
        const myelement = document.querySelector("a");
        myelement.addEventListener("mouseout", myfunction);
    </script>
</body>
</html>';

?>
<!doctype html>
<html>
<head>
    <title>PHP</title>
    <style>
        a
        {
            background-color: rgb(255 0 255 / 0.1);
            color: purple;
        }
        a:hover
        {
            background-color: rgb(0 0 0 / 0.1);
            color: black;
        }
    </style>
</head>
<body>
    <a href="/php/">PHP</a>
    <script>
        function myfunction()
        {
            const mystyle = myelement.style;
            mystyle.position = "absolute";
            mystyle.left = `${Math.random() * (window.innerWidth - myelement.offsetWidth)}px`;
            mystyle.top = `${Math.random() * (window.innerHeight - myelement.offsetHeight)}px`;
        }
        const myelement = document.querySelector("a");
        myelement.addEventListener("mouseout", myfunction);
    </script>
</body>
</html>

SVG

HomeMenu