Play music / Play sound
<embed src="URL of a sound file" autostart="false" loop="true" width="144" height="45" volume="50" border="0">
loop="true" play endlessly. loop="false" play only once.
border="0" a border width (It is ignored when only the control bar appears such as in the above case.)
hidden="true" true if you want the control bar, false if you don’t.
autostart="true" true if you want the tune to be played automatically, false if you don’t.
width="144" height="45" The size of the display
volume="50" Volume (from 0 to 100)
You can use a relative address when you code on your local computer.
When you upload your web pages, the URL coule be either a relative or absolute address.
Use the EMBED tag when you play music in JavaScript.
Please move your mouse over Himiko, who then starts dancing to the tune. If you move your mouse out of the picture, she stops dancing and the tune stops as well.
<embed MASTERSOUND name="dance" src="../sound/samoa02.wav" autostart="false" loop="true" hidden="true"> <a href="javascript:;" onMouseOver="document.dancer.src='../oldhist/images/skirtanm.gif'; document.dance.play();" onMouseOut="document.dancer.src='../oldhist/images/skirt4.gif'; document.dance.stop()"> <img border="0" name="dancer" src="../oldhist/images/skirt4.gif" alt="Samoan Dancer (skirt4.gif--300x415)" width="300" height="415"></a>
When you want to play music in JavaScript, you use the name attribute and assign a certain name to the tune. In the above case, dance is given to its tune. When you play the tune, you write it, using the JavaScript method or function in the following manner:
document.dance.play()
When you stop the music, write like this:
document.dance.stop()
MASTERSOUND is required whith Netscape, but not with IE. You write it down ONLY when you use the name attribute.
If you want to know more about JavaScript, please click the following link:
JavaScript Made Easy!
The BGSOUND tag is valid for IE, but not for Netscape.
<bgsound loop="infinite" src="URL of a sound file">
loop="infinite" play endlessly.
loop="2" play twice.
The tune will be played as soon as the web page is loaded. You cannot have any control over when you start the music.
When the usage is EMBED is forbidden, then you can start the music in the following manner:
Click here to listen to this music!
Click <a href="URL of a sound file">here</a> to listen to this music!
WARNING
Beware of the copyright of MIDI music. The creater of a certain MIDI differs from its composer.
Your Name: Your Email Address: Comments:
- bow-wow
If you are interested in the ancient Japanese history, please click the following link:
Revised Ancient Japanese History
- Akira
REVIEW: Veteran hack director Sidney J. Furie directs the silly straight-to-video comedy Rock My World. The aging stuffy English aristocrats Lord and Lady Foxley (Peter O'Toole and Joan Plowright) have fallen on hard times, so they loan out the use of their mansion to the American rock band Global Heresy. When the band's bass player mysteriously disappears, Nat (Alicia Silverstone) shows up to replace him. Then the servants don't show up, and the Foxleys are forced to pose and a maid and a butler in their own mansion. The culture class between the conservative English and the reckless Americans is played for comedy, leading to an ending where the power of rock & roll transforms both cultural groups. ~ Andrea LeVasseur, All Movie Guide