質問編集履歴
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -113,3 +113,9 @@
|
|
113
113
|
</script>
|
114
114
|
|
115
115
|
```
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
jsファイルにしたときは、このように記述しました。
|
120
|
+
|
121
|
+
![イメージ説明](616c3df85da36cb513f703ac46dc628b.png)
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -41,3 +41,75 @@
|
|
41
41
|
}
|
42
42
|
|
43
43
|
```
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
HTML
|
48
|
+
|
49
|
+
```
|
50
|
+
|
51
|
+
<p class="super_sall_title"><img src="images/shop/sp_test.jpg" alt="" /></p>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<div class="sp">
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
<div class="sp_menu">
|
60
|
+
|
61
|
+
<p><a href="#" target="_top"><img src="images/shop/sp_sec01_01.jpg" alt=""></a></p>
|
62
|
+
|
63
|
+
<p><a href="#" target="_top"><img src="images/shop/sp_sec01_02.jpg" alt=""></a></p>
|
64
|
+
|
65
|
+
<p><a href="#" target="_top"><img src="images/shop/sp_sec01_03.jpg" alt=""></a></p>
|
66
|
+
|
67
|
+
</div>
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
<iframe id="newsframe sp_50" onLoad="adjust_frame_css(this.id)" style="border: 0; display: block; margin: auto; border:0; height:100;" scrolling="no" frameborder="no" width="100%" src="test1.html"></iframe>
|
72
|
+
|
73
|
+
<iframe id="newsframe sp_20" onLoad="adjust_frame_css(this.id)" style="border: 0; display: block; margin: auto; border:0; height:100;" scrolling="no" frameborder="no" width="100%" src="test2.html"></iframe>
|
74
|
+
|
75
|
+
<iframe id="newsframe sp_10" onLoad="adjust_frame_css(this.id)" style="border: 0; display: block; margin: auto; border:0; height:100;" scrolling="no" frameborder="no" width="100%" src="test3.html"></iframe>
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
</div>
|
82
|
+
|
83
|
+
<!--<script type="text/javascript" src="iframe_js.js"></script>-->
|
84
|
+
|
85
|
+
<script type="text/javascript">
|
86
|
+
|
87
|
+
function adjust_frame_css(F){
|
88
|
+
|
89
|
+
if(document.getElementById(F)) {
|
90
|
+
|
91
|
+
var myF = document.getElementById(F);
|
92
|
+
|
93
|
+
var myC = myF.contentWindow.document.documentElement;
|
94
|
+
|
95
|
+
var myH = 100;
|
96
|
+
|
97
|
+
if(document.all) {
|
98
|
+
|
99
|
+
myH = myC.scrollHeight;
|
100
|
+
|
101
|
+
} else {
|
102
|
+
|
103
|
+
myH = myC.offsetHeight;
|
104
|
+
|
105
|
+
}
|
106
|
+
|
107
|
+
myF.style.height = myH+"px";
|
108
|
+
|
109
|
+
}
|
110
|
+
|
111
|
+
}
|
112
|
+
|
113
|
+
</script>
|
114
|
+
|
115
|
+
```
|