-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (32 loc) · 1.25 KB
/
index.html
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
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>SENG 513: Assignment 7</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" type="text/javascript"></script>
<style type="text/css" media="screen">
div.demo {
height: 300px;
width: 600px;
margin: 25px;
border: 1px solid #999;
}
</style>
<script type="text/javascript">
</script>
</head>
<body>
<!-- foo bar -->
<div class='demo' id='nrchtct'>
<input type='button' value='catch me'>
<script type="text/javascript" >
$("#nrchtct input").css({position: 'relative', top: 150, left: 275}).mouseenter(
function(){
var x = Math.random()*200-100, y = Math.random()*200-100;
$(this).animate({left: '+='+x, top: '+='+y}, 500);
}) ;
</script>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
</body>
</html>