forked from mitraraman/PartyStarter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimageview.html
50 lines (44 loc) · 1.2 KB
/
imageview.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
40
41
42
43
44
45
46
47
48
49
50
<html>
<head>
<title>IMAGES HERE</title>
<link href="imageviewstyle.css" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Gudea:400italic|Source+Sans+Pro:200" rel="stylesheet" type="text/css">
</head>
<body>
<a href="http://www.google.com">
<div class="image">
<div class="caption">
<div class="title">Party Name</div>
<div class="info">
<div class="days-info">
<span class="days1">30</span><br />
<span class="days2">days left</span>
</div>
<div class="money-info">
<span class="money1">$800</span><br />
<span class="money2">needed</span>
</div>
</div>
</div>
<img src="img/test_party_pic.jpg" />
</div>
</a>
<script src="js/jquery.js"></script>
<script>
$('.image').mouseenter(function() {
var image = $(this).find('img'),
caption = $(this).find('.caption');
caption.width(image.width());
caption.height(image.height());
caption.fadeIn();
}).mouseleave(function() {
var image =
$(this).find('img'),
caption = $(this).find('.caption');
caption.width(image.width());
caption.height(image.height());
caption.fadeOut();
});
</script>
</body>
</html>