-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
51 lines (46 loc) · 904 Bytes
/
index.html
File metadata and controls
51 lines (46 loc) · 904 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html >
<html>
<head>
<title>Image Map</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="jquery.imageMap.js"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('#image').imageMap({
points:[
[
{x: 20, y: 142},
{x: 83, y: 40},
{x: 150, y: 142}
],
[
{x: 157, y: 142},
{x: 287, y: 142},
{x:222, y: 41}
],
[
{x: 290, y: 142},
{x: 428, y: 142},
{x:363, y: 41}
]
],
names:[
'primeiro',
'segundo',
'terceiro'
],
callback: function(ret){
//console.warn(ret);
jQuery('#result').html(ret);
}
});
});
</script>
</head>
<body>
<h1>jQuery Plugin imageMap Example</h1>
<img src="sample.jpg" id="image" />
<br />
<p id="result"></p>
</body>
</html>