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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onload play .wav

Status
Not open for further replies.

Benluke

Technical User
Apr 2, 2004
112
GB
How do i achieve a music file to play when the page loads up?

Thanks

Ben
 
Code:
<embed src="filename.ext" width="x" height="x" autoplay="[red]true[/red]" hidden="x" loop="x" volume="x"></embed>

--Chessbot

"See the TURTLE of enormous girth!"
-- Stephen King, The Dark Tower series
 

And I'll have to put my own two cents in:

The only think more annoying than blinking text is when a website creator forces me to wait for a song to load and listen to music I don't want to listen to.

*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
thats ture,

but if the client wants, the client gets,

their so stuborn sometimes

thanks

Ben
 
Is it possible to make a sample of music looped, so to keeps the file size down.

eg instead of using a 1min piece use a 30sec piece looped.

Can the audio file be told to loop within th html?

 
sorry another question.

How would you get a sfx to play on click??

thanks

Ben
 
Question 1:
Code:
<embed src="filename.ext" width="x" height="x" autoplay="true" hidden="x" [red]loop="true"[/red] volume="x"></embed>

Question 2:
See Forum216, the Javascript forum.

--Chessbot

"See the TURTLE of enormous girth!"
-- Stephen King, The Dark Tower series
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top