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