質問編集履歴
2
コード変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,11 +10,11 @@
|
|
10
10
|
|
11
11
|
```html
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="/css/
|
13
|
+
<link rel="stylesheet" href="/css/photoswipe.css" type="text/css">
|
14
14
|
|
15
15
|
<script src="/js/jquery-1.10.2.min.js"></script>
|
16
16
|
|
17
|
-
<script src="/js/photoswipe.js"></script>
|
17
|
+
<script src="/js/jquery.photoswipe.js"></script>
|
18
18
|
|
19
19
|
<script>
|
20
20
|
|
1
親→親ページに変更 コード変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,10 +10,72 @@
|
|
10
10
|
|
11
11
|
```html
|
12
12
|
|
13
|
+
<link rel="stylesheet" href="/css/import.css" type="text/css">
|
14
|
+
|
15
|
+
<script src="/js/jquery-1.10.2.min.js"></script>
|
16
|
+
|
17
|
+
<script src="/js/photoswipe.js"></script>
|
18
|
+
|
19
|
+
<script>
|
20
|
+
|
21
|
+
;(function($){
|
22
|
+
|
23
|
+
$(function(){
|
24
|
+
|
25
|
+
$('a.swipe').photoSwipe();
|
26
|
+
|
27
|
+
});
|
28
|
+
|
29
|
+
})(jQuery);
|
30
|
+
|
31
|
+
</script>
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
<ul id="photoswipe">
|
36
|
+
|
13
|
-
<a href="
|
37
|
+
<li><p class="image"><a href="画像01.jpg" class="swipe" rel="group1" title="テキスト01"><img src="画像01.jpg" /></a></p></li>
|
38
|
+
|
39
|
+
<li><p class="image"><a href="画像02.jpg" class="swipe" rel="group1" title="テキスト02"><img src="画像02.jpg" /></a></p></li>
|
40
|
+
|
41
|
+
<li><p class="image"><a href="画像03.jpg" class="swipe" rel="group1" title="テキスト03"><img src="画像03.jpg" /></a></p></li>
|
42
|
+
|
43
|
+
<li><p class="image"><a href="画像04.jpg" class="swipe" rel="group1" title="テキスト04"><img src="画像04.jpg" /></a></p></li>
|
44
|
+
|
45
|
+
</ul>
|
14
46
|
|
15
47
|
```
|
16
48
|
|
49
|
+
親ページ
|
50
|
+
|
51
|
+
```html
|
52
|
+
|
53
|
+
<!DOCTYPE "html">
|
54
|
+
|
55
|
+
<html lang="ja">
|
56
|
+
|
57
|
+
<body>
|
58
|
+
|
59
|
+
<header></header>
|
60
|
+
|
61
|
+
<aside></aside>
|
62
|
+
|
63
|
+
<main>
|
64
|
+
|
65
|
+
<iframe width="700" height="600" src="iframe.html" frameborder="0" scrolling="no"></iframe>
|
66
|
+
|
67
|
+
</main>
|
68
|
+
|
69
|
+
<footer></footer>
|
70
|
+
|
71
|
+
</body>
|
72
|
+
|
73
|
+
</html>
|
74
|
+
|
75
|
+
```
|
76
|
+
|
77
|
+
|
78
|
+
|
17
|
-
親にはタグの制限が掛けられていてjavascript等は使えません。
|
79
|
+
親ページ(iframeとは別ドメイン)にはタグの制限が掛けられていてjavascript等は使えません。
|
18
80
|
|
19
81
|
何卒、宜しくお願いいたします。
|