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
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default [WIP] wmpcontrols.js

    I've just quickly built a Javascript file with some functions for controlling Windows Media Player. I can't promise that it will work, as I don't have a shoutcast of my own, but I think it will - could some people try it and then tell me whether it works? If it doesn't, please tell me what is in your browsers error log

    It's easy to intergrate into your page. First, add a Windows Media Player control and give it any id you want. Next, download wmpcontrols.js, put it in the same place as your page and then add the follow code to the head tag of your page:

    HTML Code:
    <script type="text/javascript" src="wmpcontrols.js" />
    Next, you must give the Javascript the ID of your player control. Add the following code within your head tags, this time replacing yourid with the ID of the control.

    Code:
    <script type="text/javascript">
    window.OnLoad = definePlayer('yourid');
    </script>
    Now you have done that, you can use any of the three method functions to take control of the player, which are pausePlayer(), stopPlayer(), and playPlayer(). For example you could have a link like this:

    HTML Code:
    <a href="#" onClick="playPlayer()">Play</a>



    i used to be NintendoNews. visit my blog or add me on twitter.
    need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!


    "I am the way, the truth, and the life. No one comes to the Father except through me"
    John 14:6 (NIV)


  2. #2
    Join Date
    Dec 2006
    Location
    Doncaster, UK
    Posts
    4,244
    Tokens
    0

    Latest Awards:

    Default

    Looks good Mr.Tim.

    I cannot try it out though as of yet
    A collection of forum users' views on obesity
    Quote Originally Posted by mynameisjake View Post
    sounds good
    Quote Originally Posted by Stephen View Post
    Just google it.
    Quote Originally Posted by jesus View Post
    jesus christ
    Quote Originally Posted by Alexicles. View Post
    It will probably soon go away.

Posting Permissions

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