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

Thread: Play button

  1. #1
    Join Date
    Dec 2007
    Posts
    132
    Tokens
    0

    Post Play button

    I need help finding a code. The would make it that when a person clicks an image the media player would play/stop/pause/mute... :S
    Like powerpod.

    I've been looking around but I haven't found it yet.

  2. #2
    <?PHP> Guest

    Default

    Use a custom radio player like powerpod... You want link to it pm me

  3. #3
    Join Date
    Dec 2007
    Posts
    132
    Tokens
    0

    Default

    I thought of that but i don't want it to look like powerpod.


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

    Latest Awards:

    Default

    just use some javascript to stop the radio and use the onclick function?

    name your radio oject "radio" then..

    HTML Code:
    <a href="#" onclick="radio.controls.stop()"><img src="PLAYBUTTON" border="0" /></a>
    Coming and going...
    Highers are getting the better of me

  5. #5
    Join Date
    Dec 2007
    Posts
    132
    Tokens
    0

    Default

    Too bad i don't know anything about javascript


  6. #6
    Join Date
    Dec 2007
    Posts
    132
    Tokens
    0

    Default

    But thanks it works

    But why does it go back to the top of my page when i click on the image?

    -Edit NVM I found it
    Last edited by wazup999; 06-12-2007 at 09:42 PM.


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

    Latest Awards:

    Default

    If you dont want it to go to top of the page. Change the code for

    HTML Code:
    <a href="javascript:radio.controls.stop()"><img src="PLAYBUTTON" border="0" /></a>
    it doesnt look as neat though
    Coming and going...
    Highers are getting the better of me

  8. #8
    Join Date
    Sep 2006
    Location
    Hobart, Australia
    Posts
    593
    Tokens
    0

    Default

    Cool, didn't know you could do this with JS. Nice tip!

Posting Permissions

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