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!


Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

Thread: Button coding?

  1. #21
    Join Date
    Apr 2006
    Location
    London, England
    Posts
    696
    Tokens
    0

    Default

    could easily do that for the one i posted as well, just thought using an image would be alot easier.
    ;veni vidi vici
    ;i came, i saw, i ownt

  2. #22
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    i know you could..

    Just you used an anchor as well instead of a straight onclick event.
    Coming and going...
    Highers are getting the better of me

  3. #23
    Join Date
    Dec 2007
    Posts
    2,807
    Tokens
    0

    Latest Awards:

    Default

    So whats wrong with this?

    HTML Code:
    <td rowspan="2>
    <a href="#" onClick="chw=window.open('file.html','NewWindow',' resizable=no,scrollbars=yes,status=no,width=900,he ight=440'); if (chw != null) chw.focus(); return false"> <img src="images/index_r3_c6.png" border="0" /> </a></a> 
    </a>
    Oh wait it works!!! +rep all
    Last edited by MrPinkPanther; 21-02-2008 at 06:25 PM.

  4. #24
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Quote Originally Posted by MrCraig View Post
    hm i can never remember window.open javascript parameters tbh

    EDIT:

    In head:
    Code:
    <script language="JavaScript">
    function popUpWindow(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=900,height=440');");
    }
    </script>
    For your button
    Code:
    <input type="button" value="Button Text" onclick="popUp("lol.html");" />
    Try that
    When using onclick, you need to use ' instead of " (so onclick="popup('lol.html')") so it doesnt end the tag.

  5. #25
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    Oh yeah, didnt notice that. Thanks ryan
    Coming and going...
    Highers are getting the better of me

Page 3 of 3 FirstFirst 123

Posting Permissions

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