質問編集履歴

2

質問の修正

2017/07/01 10:23

投稿

stowe
stowe

スコア19

test CHANGED
File without changes
test CHANGED
@@ -82,9 +82,9 @@
82
82
 
83
83
 
84
84
 
85
- 例えば、lightboxを使い拡大した後、こちらのjqueryを拡大した画像に追加できないでしょうか?
85
+ 例えば、fancyboxを使い拡大した後、こちらの↓loupeのjqueryを拡大した画像に追加できないでしょうか?
86
86
 
87
- https://tutorialzine.com/2010/06/apple-like-retina-effect-jquery-css
87
+ http://redopop.com/loupe/
88
88
 
89
89
 
90
90
 

1

試行錯誤した後のコードを載せます。

2017/07/01 10:23

投稿

stowe
stowe

スコア19

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,82 @@
1
+ ```<!doctype html>
2
+
3
+ <html>
4
+
5
+ <head>
6
+
7
+ <meta charset="UTF-8">
8
+
9
+ <title>無題ドキュメント</title>
10
+
11
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" ></script>
12
+
13
+ <link href="css/style.css" rel="stylesheet" type="text/css">
14
+
15
+ <link href="css/jquery.fancybox-1.3.4.css" rel="stylesheet" type="text/css">
16
+
17
+ <script type="text/javascript" src="js/jquery.fancybox-1.3.4.js"></script>
18
+
19
+ <script type="text/javascript" src="js/jquery.loupe.js"></script>
20
+
21
+
22
+
23
+ <script type="text/javascript">
24
+
25
+ $(document).ready(function () {
26
+
27
+ $("#single_1").fancybox({
28
+
29
+ helpers: {
30
+
31
+ width: '200px',
32
+
33
+ title: {
34
+
35
+ type: 'float'
36
+
37
+ }
38
+
39
+ },
40
+
41
+ afterShow: function () {
42
+
43
+
44
+
45
+ $("#single_1").loupe({
46
+
47
+ width: 100, // width of magnifier
48
+
49
+ height: 100, // height of magnifier
50
+
51
+ loupe: 'loupe' //
52
+
53
+ });
54
+
55
+ </script>
56
+
57
+ </head>
58
+
59
+
60
+
61
+ <body>
62
+
63
+
64
+
65
+ <a id="single_1" href ="img/mic.jpg"><img src="img/mic.jpg" alt="" width="250"></a>
66
+
67
+
68
+
69
+ </body>
70
+
71
+ </html>
72
+
73
+
74
+
75
+
76
+
77
+ コード
78
+
1
- ###前提・実現したいこと
79
+ ```###前提・実現したいこと
2
80
 
3
81
  題名の通りなんですが、画像をクリックするとlightboxのようなjqueryで一度拡大して、その後に虫眼鏡やルーペ等で部分的に拡大が出来ないかという質問です。
4
82