Team:ITESM-Guadalajara
From 2014.igem.org
(Difference between revisions)
Caro anele (Talk | contribs) |
Caro anele (Talk | contribs) |
||
Line 26: | Line 26: | ||
<!-- Functionallity and behaviour JS --> | <!-- Functionallity and behaviour JS --> | ||
- | <script> | + | |
+ | <script type="text/javascript"> | ||
+ | function calcHeight() | ||
+ | { | ||
+ | //find the height of the internal page | ||
+ | var the_height= | ||
+ | document.getElementById('the_iframe').contentWindow. | ||
+ | document.body.scrollHeight; | ||
+ | |||
+ | //change the height of the iframe | ||
+ | document.getElementById('the_iframe').height= | ||
+ | the_height; | ||
+ | } | ||
+ | </script> | ||
+ | |||
+ | |||
+ | |||
+ | <script> | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
Line 223: | Line 240: | ||
</head> | </head> | ||
- | <body | + | <body> |
- | + | ||
+ | <iframe width="100%" src="http://www.sergionc.com/web/" | ||
+ | scrolling="no" id="the_iframe" onLoad="calcHeight();" height="1px" frameborder="0" ></iframe> | ||
+ | |||
</body> | </body> | ||
</html> | </html> |
Revision as of 05:41, 5 September 2014