-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.html
More file actions
78 lines (68 loc) · 2.27 KB
/
index.html
File metadata and controls
78 lines (68 loc) · 2.27 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<html>
<head>
<title>FormBubble Examples</title>
<link href="stylesheets/formbubble.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.formbubble.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#foobar1').hover(function() { //hover
$(this).formBubble({
closeButton: false
});
$.fn.formBubble.text('hover hover hover hover');
}, function() { //mouse out
var thisBubble = $.fn.formBubble.bubbleObject;
$.fn.formBubble.close(thisBubble);
});
$('#foobar2').click(function() {
var url = $(this).attr('href');
$(this).formBubble({
url: url,
dataType: 'html',
cache: false
});
return false;
});
$('#foobar3').click(function() {
$(this).formBubble({
url: 'ajaxtest/test.js',
dataType: 'json',
cache: false
});
return false;
});
$('#foobar4').click(function() {
$('.ohhai-world').formBubble({
alignment: {
bubble: 'left',
pointer: 'top-right'
},
text: 'OH HAI WORLD!!1!',
unique: false
});
return false;
});
});
</script>
</head>
<body>
<div style="width:220px;margin:auto;">
<p>
Full documentation, examples, and up-to-date source code can be found on our <a href="http://lyconic.com/resources/tools/formbubble/" target="_blank">Web site.</a>
</p>
<p>
<a href="#" id="foobar1">Static Text (Hover)</a>
</p>
<p>
<a href="ajaxtest/index.html" class="ohhai-world" id="foobar2">HTML-based AJAX (Click)</a>
</p>
<p>
<a href="#" id="foobar3" class="ohhai-world">JSON-based AJAX (Click)</a>
</p>
<p>
<a href="#" id="foobar4" class="ohhai-world">Multiple Bubbles (Click)</a>
</p>
</div>
</body>
</html>