Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2008
    Location
    Nottingham
    Posts
    213
    Tokens
    0

    Default [HELP] Iframes [HELP]

    Ok Im having trouble with my Iframes Ive made them expandable but they are not expanding :s and the sub navigation just messes up

    http://habboinfo.co.uk/uk/

    +rep for help!

  2. #2
    Join Date
    Apr 2008
    Location
    Nottingham
    Posts
    213
    Tokens
    0

    Default

    bump [sorry] lol

  3. #3
    Join Date
    Apr 2006
    Location
    London, England
    Posts
    696
    Tokens
    0

    Default

    EDIT: my bad, well it seems no page is even loading in the sub nav iframe anyway so..
    Last edited by DUB; 14-05-2008 at 12:52 PM.
    ;veni vidi vici
    ;i came, i saw, i ownt

  4. #4
    Join Date
    Apr 2006
    Location
    London, England
    Posts
    696
    Tokens
    0

    Default

    couldn't edit previous post..

    But erm, you can try this though...

    In your header put:
    Code:
     <script language="JavaScript">
     function iframelol() {
      if(document.getElementById && !(document.all)) {
       h = document.getElementById('content').contentDocument.body.scrollHeight;
       document.getElementById('content').style.height = h;
      }
      else if(document.all) {
       h = document.frames('content').document.body.scrollHeight;
       document.all.content.style.height = h;
      }
     }
     </script>
    Then in your body tag you need to load the function so put:
    Code:
     <body onLoad="iframelol()">
    Then just put your iframe tag where you want it to go for e.g:
    Code:
     <iframe src="homepage.html" width=XX  scrolling=no frameborder=0 id="content"; ></iframe>

    haven't tested it, but it should work
    ;veni vidi vici
    ;i came, i saw, i ownt

  5. #5
    Join Date
    Apr 2008
    Location
    Nottingham
    Posts
    213
    Tokens
    0

    Default

    K it works in IE but not in firefox :S

Posting Permissions

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