Computer Solutions :: How to use HTML :: Adding Sound to your Board ~ Runboard


Computer Solutions
 How to use HTML
  Adding Sound to your Board
Support
Search
RSS

runboard.com       Sign up (learn about it) | Sign in (lost password?)


 
The Wizard3
Owner / Designer
Global user

Registered: 06-2006
Location: Castle Belgalor
Posts: 1858
Avatar
Reply | Quote
Adding Sound to your Board


To add sounds to a web page... we will use the <embed> tag. This tag supports many common file formats... such as .wav, .mid, .mp3, and .au.

Here is the basic structure of the tag:
<embed src="filename.ext" width="x" height="x" autoplay="x" hidden="x" loop="x"</embed>

If you want the file to automatically play when the web page is loaded, set autoplay="true".
If you do not want the file to automatically start, set autoplay="false".
If you want the control box to be hidden, use the hidden="true" attribute.
  
Normally the file will stop playing after it is completed the first time, so if you want it to repeat again and again use the attribute loop="true". To make it play once use loop="false"

---
Image

Image

14/12/06, 23:27 Send a PM to this person Send an MSN Message
 


Add A Reply






Link to us   -  Blogs   -  Hall of Honour   -  Chat
You are not logged in (login)      Board's time is: 29/11/09, 6:50