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

Thread: Pop Up Box

  1. #1

    Default Pop Up Box

    Hello I think this is the right section although i may be wrong...

    I'm looking for a simple code where i can put a radio player into that pops when a link is clicked so the radio player is in the pop up.

    Can anyone help please?

  2. #2
    Join Date
    Sep 2008
    Posts
    718
    Tokens
    0

    Default

    You weren't very detailed, but you can just put the radio in a file then add target="_blank" to your link...
    +.net - omg it's coming o_o

  3. #3

    Default

    So using what you've said above will produce something like what club habbo have got under the radio player when clicked on? www./clubhabbo.net/radio/popup.html

  4. #4
    Join Date
    Jun 2008
    Location
    Manchester
    Posts
    766
    Tokens
    0

    Default

    Put this in the head tags:
    Code:
    <script type="text/javascript">
    function popup(url, width, height, name)
    {
    window.open(url, name, 'width='+width+',height='+height+',resizable=0,scrollbars=0,location=0');
    }
    </script>
    The link:
    HTML Code:
    <a href="#" onClick=popup('radio.html', '300', '150', 'radio')
    Hopefully that would work.

  5. #5
    Join Date
    Sep 2008
    Posts
    718
    Tokens
    0

    Default

    Quote Originally Posted by Jxhn View Post
    Put this in the head tags:
    Code:
    <script type="text/javascript">
    function popup(url, width, height, name)
    {
    window.open(url, name, 'width='+width+',height='+height+',resizable=0,scrollbars=0,location=0');
    }
    </script>
    The link:
    HTML Code:
    <a href="#" onClick=popup('radio.html', '300', '150', 'radio')
    Hopefully that would work.
    Only advantage of that is you can set your width, so if you need to use it, other way mine is much simpler

    Also, close your tags Jxhn
    HTML Code:
    <a href="#" onClick=popup('radio.html', '300', '150', 'radio')>
    +.net - omg it's coming o_o

  6. #6
    Join Date
    Jun 2008
    Location
    Manchester
    Posts
    766
    Tokens
    0

    Default

    Quote Originally Posted by HabbDance View Post
    Only advantage of that is you can set your width, so if you need to use it, other way mine is much simpler

    Also, close your tags Jxhn
    HTML Code:
    <a href="#" onClick=popup('radio.html', '300', '150', 'radio')>
    _blank opens in new tab which is probably too big for a radio player. Forgot about the end of the tag.
    HTML Code:
    <a href="#" onClick="popup('radio.html', '300', '150', 'radio')">

  7. #7

    Default

    Quote Originally Posted by Jxhn View Post
    Put this in the head tags:
    Code:
    <script type="text/javascript">
    function popup(url, width, height, name)
    {
    window.open(url, name, 'width='+width+',height='+height+',resizable=0,scrollbars=0,location=0');
    }
    </script>
    The link:
    HTML Code:
    <a href="#" onClick=popup('radio.html', '300', '150', 'radio')
    Hopefully that would work.
    Sorry I'm being thick where would this code go? and if the link was say radiopopup.htm where would that go i'm sorry...

    Code:

  8. #8
    Join Date
    Jun 2008
    Location
    Manchester
    Posts
    766
    Tokens
    0

    Default

    It would just go under that.
    HTML Code:
    <a href="#" onClick="popup('radio.html', '300', '150', 'radio')">Radio popup</a>
    Change 300 and 150 to the width and height you want.

  9. #9

    Default

    Ohhh okay thank you +Rep

Posting Permissions

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