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 2 of 2

Thread: Code

  1. #1
    Join Date
    May 2005
    Posts
    826
    Tokens
    0

    Default Code

    I need a code that when you open the index page it resizes


    So i go to my site at www.spyonline.co.uk then it will resize to a intro then when i click eneter it will go to normal

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

    Latest Awards:

    Default

    There javascript doesnt appear to have any effect in firefox, yet if you mean say the window resives to be smaller or larger etc, this javascript should do the job


    Ad this in the header
    Code:
    <script language=JavaScript>
    <!--
    function resizeOuterTo(w,h) {
     if (parseInt(navigator.appVersion)>3) {
       if (navigator.appName=="Netscape") {
        top.outerWidth=w;
        top.outerHeight=h;
       }
       else top.resizeTo(w,h);
     }
    }
    //-->
    </script>

    Then in the body tag ad the exstra atribute onLoad="resizeOuterTo(600,450)"

    so your new body tag may be

    Code:
    <body onLoad="resizeOuterTo(600,450)">
    just replace the 6000 and 450 with the page size you want resized to, Width,Height

    Code:
    <body onLoad="resizeOuterTo(Width,Height)">

Posting Permissions

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