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!


Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Iframes

  1. #1
    Join Date
    May 2007
    Location
    Brisbane, Australia
    Posts
    796
    Tokens
    0

    Default Iframes

    Hello All HxF Users..

    I need an Code for Expandable Iframes?


    Has anyone got it?
    Thanks,
    Chris
    Free Image Uploading

    __________________


    [/url]

    [/FONT]

  2. #2
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    Use the search feature!

    www.dynamicdrive.com

  3. #3
    Join Date
    May 2007
    Location
    Brisbane, Australia
    Posts
    796
    Tokens
    0

    Default

    some reason they dont work on my site i've done it right..


    Anyone elce?
    Thanks,
    Chris
    Free Image Uploading

    __________________


    [/url]

    [/FONT]

  4. #4
    Join Date
    Jan 2008
    Posts
    287
    Tokens
    0

    Default

    It is called google, use it. If it doesn't work right, you didn't do it right.. seriously?

    PHP Code:
    <?php
    fecho 
    "hey";
    ?>
    Thats not going to work, its echo.. apparently you did something wrong

  5. #5
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    This is the iframe code:

    HTML Code:
    <script type="text/javascript">
                //<![CDATA[
                window.onload = function() {
                    var f = document.getElementById("mainframe");
                    function resize() {
                        var h = "";
                        var w = "";
                        if (f.contentDocument) {
                            h = f.contentDocument.documentElement.offsetHeight + 20 + "px";
                  (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>
    
    <iframe name="frm" id="mainframe" src="URL HERE" frameborder="0" allowtransparency="no" scrolling="no" target="_self" height="150"></iframe>
    And to target links into it use this code;

    HTML Code:
    <a href="URL OF PAGE" target="frm">Name Of Page</a>
    Lets set the stage on fire, and hollywood will be jealous.

  6. #6
    Join Date
    Mar 2007
    Posts
    1,691
    Tokens
    1,025

    Latest Awards:

    Default

    Quote Originally Posted by chrisgocrazyH View Post
    Hello All HxF Users..

    I need an Code for Expandable Iframes?


    Has anyone got it?
    Quit posting help threads for every little thing you hit, there's google which does it a lot faster than here!

    Use AJAX for expanding content not iframes. iFrames are one of the most annoying pieces of coding on god blue earth.

  7. #7
    Join Date
    May 2007
    Location
    Brisbane, Australia
    Posts
    796
    Tokens
    0

    Default

    Well im Sorry BUT I HAVE used google i found bull ---- and ill try Ajax and also ill see if above code works
    Thanks,
    Chris
    Free Image Uploading

    __________________


    [/url]

    [/FONT]

  8. #8
    Join Date
    Jan 2008
    Posts
    287
    Tokens
    0

    Default

    Quote Originally Posted by Awfy View Post
    Quit posting help threads for every little thing you hit, there's google which does it a lot faster than here!

    Use AJAX for expanding content not iframes. iFrames are one of the most annoying pieces of coding on god blue earth.
    I disagree with that, lots of professional sites use them for various things, they are helpful, and they are good when used in the right way.

    AJAX dynamic content is annoying unless you can use the backspace key, and I am sure this guy doesn't have the knowledge.

    Quote Originally Posted by chrisgocrazyH View Post
    Well im Sorry BUT I HAVE used google i found bull ---- and ill try Ajax and also ill see if above code works

    http://www.google.com/search?hl=en&q...=Google+Search

  9. #9
    Join Date
    Dec 2007
    Posts
    159
    Tokens
    0

    Default

    Quote Originally Posted by Awfy View Post
    Quit posting help threads for every little thing you hit, there's google which does it a lot faster than here!

    Use AJAX for expanding content not iframes. iFrames are one of the most annoying pieces of coding on god blue earth.
    Thank you.

    iFrames will get result in you getting people who search for your website, hitting into the content of your iFrame. So, for example, I search for your site, I hit the link, and I find the contents of your shoutbox. Great - I'll just go back and go to another website.

    Essential Links . Homepage . Our Services . Client Portal

  10. #10
    RedCrisps Guest

    Default

    Quote Originally Posted by SH-Stephen View Post
    Thank you.

    iFrames will get result in you getting people who search for your website, hitting into the content of your iFrame. So, for example, I search for your site, I hit the link, and I find the contents of your shoutbox. Great - I'll just go back and go to another website.
    huh :S

Page 1 of 2 12 LastLast

Posting Permissions

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