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
  1. #1
    Join Date
    Feb 2005
    Posts
    5,234
    Tokens
    1,903

    Latest Awards:

    Default Making a new window with Javascript

    You can obviously make a pop up window with HTML in a link, but with Javascript you get to specify the dimensions of what the window will be.

    In the code below, is an example. Where it says 'LINK HERE' in red, you place the adress in which clicking the link will take you to. Also in red, is the dimensions.

    You can of course customize this, so if the link would take you to a flash movie you would have to make sure the dimensions were the right size for the best quality.

    Code:
    javascript:newWin=void(window.open('http://LINK HERE','newWin','width=100,height=100,top=60,left=60'))"
    In the code below, the bit in blue would be the text displayed. So when it is clicked on it will go to the link. (The code is in HTML)

    Code:
    <A href='javascript:newWin=void(window.open('http://LINK HERE','newWin','width=100,height=100100,top=60,left=60'))">CLICK ME</A>

  2. #2
    Join Date
    Feb 2005
    Location
    Sheffield
    Posts
    2,288
    Tokens
    1,686

    Latest Awards:

    Default

    What I always use:

    Code:
    <a href="javascript:location='page to redirect to';window.open('page to open','characters','height=w/e,width=w/e,scrollbars=no')">Link</a>
    Last edited by Pawf; 02-04-2006 at 03:46 PM.

Posting Permissions

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