Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 9 of 9

Thread: iFrame

  1. #1
    Join Date
    Oct 2005
    Location
    Spain, Valencia
    Posts
    20,492
    Tokens
    3,575
    Habbo
    GoldenMerc

    Latest Awards:

    Default iFrame

    Well im trying to put something into a iframe, i used this code;
    <html>

    <frameset cols="10%">
    <frame src="http://www.google.com" />
    </frameset>

    </html>
    Although i took the html tags out, it was in a div but it doesnt seem to work can anyone help

  2. #2
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Thats becuse the code above is for a normal frame as opposed to an inline one. Normal frames unlike inline frames are as the name may suggest not inline.

    Iframe code is
    HTML Code:
    <iframe src ="somepage.htm" width="100%" height="300">
      <p>Your browser does not support iframes.</p>
    </iframe>

  3. #3
    Join Date
    Oct 2005
    Location
    Spain, Valencia
    Posts
    20,492
    Tokens
    3,575
    Habbo
    GoldenMerc

    Latest Awards:

    Default

    yay that works, is there any way i can narrow the preview, also it cracks up my divs at the top

  4. #4
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Not entirely sure what you mean by narrow the preview, but ajusting the width/height will allow you to change the iframes size?

  5. #5
    Join Date
    Oct 2005
    Location
    Spain, Valencia
    Posts
    20,492
    Tokens
    3,575
    Habbo
    GoldenMerc

    Latest Awards:

    Default

    Nah, it should be fine. just looks dodgy now with the transparency, trying to find how to make it so there's no transparency when the iframe begins then after the transparency continues

  6. #6
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    So you want the iframe transparnt or not transparnt? if you want a set background i belive you need to set it specificly in the thing your displaying within the iframe... that or to make a background a specific colour, unset it in the iframed object and instead add it in to the div that conatins the iframe?

    I've not used em in a while so dont realy remeber this stuff very well. frameborder="0" removes the border if that helps though? :p

  7. #7
    Join Date
    Oct 2005
    Location
    Spain, Valencia
    Posts
    20,492
    Tokens
    3,575
    Habbo
    GoldenMerc

    Latest Awards:

    Default

    Thanks Mentor

  8. #8
    Join Date
    Oct 2005
    Location
    Spain, Valencia
    Posts
    20,492
    Tokens
    3,575
    Habbo
    GoldenMerc

    Latest Awards:

    Default

    kk need your help again
    http://www.octaviusrossassociates.co.uk/
    professional details >> click bps logo
    it does that, how would i do that, iv tried the iframe you gave me and now its leaving a space at the left, im pretty much wanting my background to end after the navbar
    Ross

  9. #9
    Join Date
    Oct 2005
    Location
    Spain, Valencia
    Posts
    20,492
    Tokens
    3,575
    Habbo
    GoldenMerc

    Latest Awards:

    Default

    may aswel just go for triple post lol, im wanting the bg body to end when it gets to the iframe iv tried ending the html and the body tags and its not working. any ideas?

Posting Permissions

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