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

Thread: Coding Help.

  1. #1
    Join Date
    Aug 2006
    Location
    Doncaster, UK
    Posts
    479
    Tokens
    0

    Default Coding Help.

    I don't care if it's in wrong section ok?

    Right, I want my layout to be opened up in a window that is the same size as the layout [800X600].

    I want it to open up in a new window from an enter page

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <!-- saved from url=(0014)about:internet -->
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>currently</title>
    </head>
    <body>
    <div align="center">
      <p><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Xvisor.co.uk</font></p>
      <p>&nbsp;</p>
      <p><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="home.php" target="_top">Enter</a></font></p>
    </div>
    </body>
    </html>
    That's the enter page code

  2. #2
    Join Date
    Mar 2006
    Location
    Scotland
    Posts
    1,012
    Tokens
    175

    Latest Awards:

    Default

    You'd need to use JS I think and make it a non resisable window


    You don't like me
    Chances are I don't like you.

  3. #3
    Join Date
    Aug 2006
    Location
    Doncaster, UK
    Posts
    479
    Tokens
    0

    Default

    Ok, I know what I need to do...

    I just need a code or something.

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

    Default

    Just use a Javascript function and the onClick property to open a new window, it's basic code.

    HTML Code:
    <script type="text/javascript">
    <!--
    function openWindow() {
    
     window.open("url.php","Name",config="height=200,width=200")
    
    }
    //-->
    </script>
    <a href="url.php" onclick="openWindow()">Enter</a>
    There are other more valid ways to do it now, but thats just a basic way of doing it although this would probably annoy many users.
    Last edited by Geek; 18-08-2006 at 09:03 AM.

  5. #5
    Join Date
    Aug 2006
    Location
    Doncaster, UK
    Posts
    479
    Tokens
    0

    Default

    Thanks alot.

    I'll try it.

    EDIT -
    Last edited by 1; 18-08-2006 at 09:21 AM.

Posting Permissions

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