-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
23 lines (21 loc) · 1.17 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<iframe id="textPixel1" src="textPixel.html" frameborder="0" border="0" scrolling="0" onload="iFrameHeightInner(event)"></iframe>
<iframe id="textPixel2" src="textPixel2.html" frameborder="0" border="0" scrolling="0" onload="iFrameHeightInner(event)"></iframe>
<script type="text/javascript" language="javascript">
function iFrameHeightInner(event) {
//var ifm= document.getElementById("iframepage");
var ifm=event.srcElement||event.target;
var subWeb= ifm.contentDocument;
//if(subWeb == null) {document.write("<p>null subWeb !!!!!!!!!!</p>");}
//var subWeb = document.frames ? document.frames["iframepage"].document : ifm.contentDocument;
//if( ifm == null){ document.write("<p>iframe null</p>");}
//else{ document.write("<p>"+ifm+"</p>");}
if(ifm != null && subWeb != null) {
//ifm.height = 1024;
ifm.height = subWeb.body.scrollHeight;
//ifm.height = subWeb.body.scrollHeight + subWeb.body.scrollHeight ;
//ifm.width = subWeb.body.scrollWidth + subWeb.body.scrollWidth;
//ifm.height = document.body.scrollHeight;
ifm.width = subWeb.body.scrollWidth;
}
}
</script>