Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Oct 2006
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question clip by the time of the day

    hi to all, i am trying to a have a player that plays different clip depends on the time of the day like 12AM play clip 1 3PM play clip2 and so on, this is what i am using for the player

    <html>

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
    <title>New Page 1</title>
    </head>

    <body>
    <object width="100" height="60"
    classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"
    codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
    standby="Loading Microsoft Windows Media Player components..."
    type="application/x-oleobject">
    <p><script language="JavaScript">

    day = new Date()

    hr = day.getHours()

    if (hr ==5)

    <param name="url" value="http://www.my clip.mp3">

    <param name="autoStart" value="true">
    <param name="stretchToFit" value="True">

    </embed>
    </object>

    </body>

    </html>

    i dont know how to make this work need help.
    thanx

  • #2
    Regular Coder Tyree's Avatar
    Join Date
    Sep 2003
    Posts
    254
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think you'll have better luck with an answer to this in the javascript forum.

    It's more of a script issue than a multimedia issue.

    I'm not a javascript guru...but, you could use it to get the time of day and then set up some conditionals for which clip to play when a condition is met.


  •  

    Posting Permissions

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