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

Thread: Window

  1. #1
    Join Date
    Mar 2009
    Location
    Western Australia
    Posts
    386
    Tokens
    0

    Default Window

    I know how to open links in new windows using <a href="#" target="_blank"></a> but how can I make it open a new window so that it only shows the address bar.. Line Habbo Hotel does for their client. Example below.


  2. #2
    Join Date
    Sep 2009
    Location
    Hull
    Posts
    827
    Tokens
    0

    Latest Awards:

    Default

    <!-- TWO STEPS TO INSTALL POPUP WINDOW:

    1. Paste the first into the HEAD of your HTML document
    2. Use the code to open the popup page on your site -->

    <!-- STEP ONE: Copy this code into the HEAD of your HTML document -->

    <HEAD>

    <SCRIPT LANGUAGE="JavaScript">
    <!-- Idea by: Nic Wolfe -->
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->

    <!-- Begin
    function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=1,statusbar=0,men ubar=0,resizable=1,width=500,height=500,left = 470,top = 200');");
    }
    // End -->
    </script>


    <!-- STEP TWO: Use the following link to open the new window -->

    <A HREF="javascript:popUp('popup')">Open the Popup Window</A>


    Got it off a popup generator. Hope its useful

    Lew.

  3. #3
    Join Date
    Apr 2008
    Location
    Derby
    Posts
    4,668
    Tokens
    262

    Latest Awards:

    Default

    Take a look on dynamic drive as well

  4. #4
    Join Date
    Mar 2009
    Location
    Western Australia
    Posts
    386
    Tokens
    0

    Default

    Thanks Lew.
    EDIT: How can I make it allow php and html?
    Last edited by Shibby-Shabs; 17-10-2009 at 12:37 PM.

  5. #5
    Join Date
    Sep 2009
    Location
    Hull
    Posts
    827
    Tokens
    0

    Latest Awards:

    Default

    You make the .php/.html file serperatly... it only opens an external page.

    Lew.

  6. #6
    Join Date
    Mar 2009
    Location
    Western Australia
    Posts
    386
    Tokens
    0

    Default

    I'm not quite sure what you mean, I need it to open a HTML file.

  7. #7
    Join Date
    Feb 2006
    Location
    /usr/local
    Posts
    2,809
    Tokens
    688

    Latest Awards:

    Default

    EDIT: Never mind, mis read ur question ;]

Posting Permissions

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