A revolving earth (earthani.gif--64x64) Beaverland Net
HTML Made Easy!
 
Japanese Version (japanv.gif--100x36)

Beaverland Net HTML Made Easy! logo (html02.gif--140x160)

Beaverland Unlisted Slang logo (slangs2.gif--140x260)

Beaverland Historica logo (histbanr.jpg--140x360)

Beaverland Mythology logo (mythbanr.jpg--140x255)

Beaverland Stries logo (stories.jpg--140x276)

Beaverland Webs & Internet Secrets logo (web100.jpg--140x250)

Beaverland Cleopatra Gallery logo (galleryt.gif--177x275)

Beaverland Ciold War Years logo (coldwrbn.jpg--140x320)


onstore.gif (140x93)

beavbook.gif (120x160)

beavcomp.gif (120x160)

beavmovi.gif (120x160)

beavgift.gif (120x160)

beavtrav.gif (120x160)

music.gif (50x50) Beaverland Music
 
How To Use an EMBED Tag
May 12, 2003

 

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.

Samoan Dancer (skirt4.gif--300x415)

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.

  • You have to obtain the permission of the original composer even if the creator of the MIDI gives you a permission.

  • If a CD contains a tune, its MIDI-nized tune cannot be distributed on the Net.

  • Try not to autostart a sound or tune. If a viewer is surfing at work or in the midnight, sounds might disturb the viewer as well as his or her coworkers.

  • Even if you like the tune, other people might dislike it.

  • Try to give some control to the viewer so that one can start or stop at one’s own will.

  • Endless plaing might disturb the viewer.

 

Chipmunk pointing to the left (chipleft.gif--178x156) Related
Links




Rate article:
Excellent Good Neutral Poor Worst

Your Name:
Your Email Address:
Comments:


  Comments
  Home come the dancing girl is called Himiko?

    - bow-wow


She is a mascot girl of my ancient Japanese history site. The famous lady in the ancient times is Himiko, so she has the same name, but it is written in a different form in Japanese.

If you are interested in the ancient Japanese history, please click the following link:

Revised Ancient Japanese History

    - Akira

   
 
Copyright Akira Kato
About this author:
  • Educated both in Canada and Japan
  • Traveled extensively in Europe, Far East, and North America
  • Worked as management consultant, computer systems analyst, college instructor and freelance writer.
Akira Kato

Rock My World movie poster (rock01.jpg--150x221) Wanna see a DVD movie?
Why not buy one at a bargain?

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


Beaverland Forum
Featuring thought-provoking
columns and stories
inserted by FC2 system