Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Playing .WAV files in succession

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
US
I want to play the time when a person comes to the WEB page
in VBScript:
here is what I have so far:
---------------------
<%find1Colon = Instr(1,FormatDateTime(Now, 3),&quot;:&quot;)%>
<%find2Colon = Instr(find1Colon,FormatDateTime(Now, 3),&quot;:&quot;)%>
<%Hour1=trim(left(FormatDateTime(Now, 3),find1Colon -1))%>
<%Minute1=mid(FormatDateTime(Now, 3),find1Colon+1,2)%>
<%ampm1=right(FormatDateTime(Now, 3),2)%>

<%TheHour = &quot;timesound/TA&quot; & Hour1 & &quot;.WAV&quot;%>
<%TheMinute = &quot;timesound/TA&quot; & Minute1 & &quot;.WAV&quot;%>
<%TheDay = &quot;timesound/TA&quot; & ampm1 & &quot;.WAV&quot;%>

<BGSOUND SRC=&quot;<%=TheHour%>&quot; LOOP=&quot;1&quot;>
<BGSOUND SRC=&quot;<%=TheMinute%>&quot; LOOP=&quot;1&quot;>
<BGSOUND SRC=&quot;<%=TheDay%>&quot; LOOP=&quot;1&quot;>
----------------------------

but it only plays the first sound
I realize BGSOUND is not right...
Does any one have any ideas though??

TIA

DougP, MCP
dposton@universal1.com

Ask me how Bar-codes can help you be more productive.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top