Team:ITESM-Guadalajara

From 2014.igem.org

(Difference between revisions)
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 style="margin:0px;padding:0px;overflow:hidden">
+
<body>
-
    <iframe src="http://www.sergionc.com/web/" frameborder="0" style="overflow:hidden;height:150%;width:150%" height="150%" width="150%"></iframe>
+
 
 +
<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