Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Hmph.

  1. #11
    Join Date
    Jan 2006
    Location
    Kent
    Posts
    987
    Tokens
    0

    Default

    How about just trying a frame?

  2. #12
    Join Date
    May 2005
    Location
    united kingdom
    Posts
    8,084
    Tokens
    595

    Latest Awards:

    Default

    Can anybody help me?

    drink up this bottle of yeah
    and P A I N T your body on me


  3. #13
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Right. Remove the tables and just have the divs.

    Above the iframe have:

    Code:
    <script type="text/javascript">
                //<![CDATA[
                window.onload = function() {
                    var f = document.getElementById("main");
                    function resize() {
                        var h = "";
                        var w = "";
                        if (f.contentDocument) {
                            h = f.contentDocument.documentElement.offsetHeight + 20 + "px";
                            // can't find anything for Opera and Firefox that works for the width. OffetWidth doesn't work right either.(f.contentDocument.documentElement,"").getPropertyValue("width");
                        } else if (f.contentWindow) {
                            h = f.contentWindow.document.body.scrollHeight + 5 + "px";
                        } else {
                            return;
                        }
                        f.setAttribute("height",h);
                        f.parentNode.setAttribute("height",h);
                    }
                    if (window.addEventListener) {
                        f.onload = resize;
                    } else if (f.attachEvent) {
                        f.attachEvent("onload", resize);
                    } else {
                        return;
                    }
                    resize();
                }
                //]]>
                        </script>
    Then for your iframe code have:

    Code:
    <iframe src="welcome.html" width="100%" height="100%" frameborder="0" scrolling="no" name="main">Your browser doesn't support inline frames</iframe>
    You might have to edit the javascript/iframe to fit your needs. But it should work x)
    Last edited by Invent; 07-11-2006 at 04:27 PM.

  4. #14
    Join Date
    Aug 2006
    Location
    Denton, UK
    Posts
    80
    Tokens
    0

    Default

    If you PM me the graphics and code that you have so far, I will re-code it in fully DIVS if you want, I suppose you could use PHP includes, but why not just intergrate the other webpage into your index.

    It is illogical unless using a navigational system, in which holds many many codes, which it would be easier to edit as one HTML file saved as .php can be used as an include.

    Quote Originally Posted by ---MAD--- View Post
    I am not an expert with divs as I usually use iframes. Most people dislike iframes because of the fact they dont expand.

    You will need to use includes I believe.
    Sorry to go off-topic and I mean no offence, but how can you be the webpage design manager when you use iframes, they lack any decent browser-compatibility and are a nightmare to get looking good.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •