forked from tweego/JeeGooPopup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimage.htm
52 lines (45 loc) · 1.95 KB
/
image.htm
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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Jeegoopopup, a jQuery popup plugin</title>
<link href="style.css" rel="Stylesheet" type="text/css" />
<style type="text/css">
#content{padding:50px; text-align:center}
</style>
<link href="jeegoopopup/skins/basic/style.css" rel="Stylesheet" type="text/css" />
<script type="text/javascript" src="jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="jeegoopopup/jquery.jeegoopopup.1.0.0.js"></script>
<script type="text/javascript">
//<![CDATA[
$(function(){
$('a.popup').click(function(e){
$.jeegoopopup.open({
html: '<img src="' + $(this).attr('href') + '" />',
skinClass: 'jg_popup_basic',
resizable: false,
draggable: true,
fixed: false
});
$('#jg_popup_content').unbind('click.close').bind('click.close', function(){
$.jeegoopopup.close();
});
return false;
});
});
//]]>
</script>
</head>
<body>
<div id="outer">
<div id="header">
<h1><span class="jg_red">J</span><span class="jg_green">ee</span><span class="jg_yellow">g</span><span class="jg_blue">oo</span>popup, <span style="font-size:.7em">a jQuery popup plugin</span></h1>
Copyright © 2009 - 2013 <a href="http://www.tweego.nl" target="_blank">TweeGo</a>: <a href="http://www.tweego.nl/jeegoopopup" target="_blank">http://www.tweego.nl/jeegoopopup</a>
</div>
<div id="content">
<p>Click the image to open a popup.</p>
<a href="dog.jpg" class="popup"><img src="dog.jpg" style="width:100px"/></a>
</div>
</div>
<a id="prev" href="tooltip.htm">Use popup as tooltip</a>
</body>
</html>