View Full Version : clip by the time of the day

this me
11-23-2006, 10:36 PM
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


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

<object width="100" height="60"
standby="Loading Microsoft Windows Media Player components..."
<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">




i dont know how to make this work need help.

11-30-2006, 04:21 PM
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.