Menu Home

PHP

osbo.com | PHP

PHP: Hypertext Preprocessor (PHP) is a language for creating web content.

Examples

<!doctype html>
<html>
<head>
    <title>PHP</title>
    <style>
        a
        {
            color: purple;
        }
        a:hover
        {
            text-decoration: none;
        }
    </style>
    <script>
        var timeout;
        onload = function()
        {
            var element = document.getElementsByTagName("a")[0];
            element.style.position = "absolute";
            element.style.left = Math.random() * (window.innerWidth - element.offsetWidth) + "px";
            element.style.top = Math.random() * (window.innerHeight - element.offsetHeight) + "px";
            window.clearTimeout(timeout);
            timeout = window.setTimeout(onload, 3 * 1000);
        }
    </script>
</head>
<body>
    <a href="/php/">PHP</a>
</body>
</html>

Internal

Functions

External

PHP