-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjquery.linkqtip-example.html
30 lines (29 loc) · 1.42 KB
/
jquery.linkqtip-example.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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>jQuery LinkQTip example page</title>
<style type="text/css">@import url("jquery.linkqtip-styles.css");</style>
<script type="text/javascript" src="jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="jquery.linkqtip.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('a').linkQTip();
$('#toggle').click(function() {
$('#a1').data('LinkQTip').toggle();
});
});
</script>
</head>
<body>
<h2>Hover a link to preview it</h2>
<ul>
<li><a href="http://en.wikipedia.org/wiki/Larch" id="a1">http://en.wikipedia.org/wiki/Larch</a></li>
<li><a href="http://bash.org/">http://bash.org/</a></li>
<li><a href="http://jquery.com/">http://jquery.com/</a></li>
<li><a href="http://www.xkcd.com/">http://www.xkcd.com/</a></li>
<li><a href="https://www.vaadin.com/">https://www.vaadin.com/</a></li>
</ul>
<div id="toggle">Toggle first qtip by clicking me!</div>
</body>
</html>