...

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

<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

Tyree
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum