<iframe width=100% height=100%>
Publicado por siREZ (203 intervenciones) el 08/10/2014 02:26:26
como puedo implementar este codigo para mi_pdf.pdf
en el body
gracias.
siREZ
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
<script language="JavaScript">
<!--
function resize_iframe()
{
var height=window.innerWidth;//Firefox
if (document.body.clientHeight)
{
height=document.body.clientHeight;//IE
}
//resize the iframe according to the size of the
//window (all these should be on the same line)
document.getElementById("glu").style.height=parseInt(height-
document.getElementById("glu").offsetTop-8)+"px";
}
// this will resize the iframe every
// time you change the size of the window.
window.onresize=resize_iframe;
//Instead of using this you can use:
// <BODY onresize="resize_iframe()">
//-->
</script>
en el body
1
2
<iframe id="glu" width="100%" onload="resize_iframe()">
</iframe>
gracias.
siREZ
Valora esta pregunta


0