-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
34 lines (26 loc) · 1.33 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
<!DOCTYPE html>
<head>
<title>tooltip - test</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="jquery.tooltip/js/jquery.tooltip.js"></script>
<style type="text/css">
.container { margin: 0 auto; width: 1000px; }
.container img, .container span { clear: both; margin: 20px; }
</style>
</head>
<body>
<div class="container">
<img src="http://dummyimage.com/600x400/000/fff" data-tooltip="tooltip 1" class="hastooltip" alt="">
<span data-tooltip-img="http://dummyimage.com/600x400/000/fff" class="hastooltip">texto unico e gigante</span>
<img src="http://dummyimage.com/490x400/000/fff" data-tooltip="tooltip 3" class="hastooltip" alt="">
<span data-tooltip="vruivrbvie ciheroicheoihfioeh hcoeruihrofihre" class="hastooltip">texto</span>
<img src="http://dummyimage.com/600x400/000/fff" data-tooltip="tooltip 1" class="hastooltip" alt="">
<span data-tooltip="tooltip 2" class="hastooltip">texto unico e gigante</span>
<img src="http://dummyimage.com/490x400/000/fff" data-tooltip="tooltip 3" class="hastooltip" alt="">
<span data-tooltip="vruivrbvie ciheroicheoihfioeh hcoeruihrofihre" class="hastooltip">texto</span>
</div>
<script type="text/javascript"><!--
$(".hastooltip").tooltip();
//--></script>
</body>
</html>