Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jun 2003
    Posts
    3
    Member #
    1834
    the iframe on this web site www.iglobal.ca isn't showing up in netscape when I use height="100%"
    can someone help me? I am very new to web design..plz help

  2.  

  3. #2
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    You need javascript to scale an iframe in netscape. Here's the code to do it:
    Code:
    <html>
    <head>
        <script language="javascript">
            //Resizes the iframes in the window to the appropriate height
            function redraw() {
                var height = document.all ? document.body.clientHeight : 
                    window.innerHeight;
                height = height - 132;
                document.getElementById('fraMain').height = height;
            }
        </script>
    </head>
    <body onload="redraw()" onresize="redraw()" scroll="no">
        <iframe
            id="fraMain"
            name="fraMain"
            src="blank.asp"
            width="100%"
            height="700"
            frameborder="0"
            scrolling="auto"
            marginwidth="0"
            marginheight="0">
        </iframe>
    </body>
    </html>

  4. #3
    Junior Member
    Join Date
    Jun 2003
    Posts
    3
    Member #
    1834
    Thx for the script! I've tried using the script on the site but the bottom portion of the site disappears, leaving only the top portion and the iframe. Basically, I wanted to auto resize the site vertically in netscape 7. Actually how the site should look in ie6. How would i do that? Or how can i modified the script to do what I wanted? thx

  5. #4
    Junior Member
    Join Date
    Jun 2003
    Posts
    3
    Member #
    1834
    nevermind, I think I got it. I've been playing with this line height = height - 300; of the script but still there a little of space on top and bottom of the iframe in ie6 but looks great in netscape.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:18 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com