-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirst.html
More file actions
31 lines (28 loc) · 806 Bytes
/
Copy pathfirst.html
File metadata and controls
31 lines (28 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>function moveIt() {
var coords = new Array(10,50,100,130,175,225,260,300,320,350);
var x = coords[Math.floor((Math.random()*10))];
var y = coords[Math.floor((Math.random()*10))];
$("#elusiveText").css({"top": x + "px", "left": y + "px"})
}</script>
<style>
span{
background-color: #2EFE2E;
color: #FF0040 !important;
font-weight: bold;
font-size: 14pt;
border-color: #FFFFFF;
border: 3px solid;
border-radius: 5px;
padding: 10px;
position: absolute;
top: 50px;
left: 50px;}</style>
</head>
<body> <span id="elusiveText" onmouseover="moveIt()">Click me - as fast as fast can be, you'll never catch me!</span>
</body>
</html>