書式
<bgsound>
属性
属性名 |
初期値 |
内 容 |
id |
なし |
IDを指定します。 |
class |
なし |
スタイルシートクラスを指定します。 |
src |
なし |
演奏する音楽のURLを指定します。 |
loop |
--- |
繰り返す回数を指定します。-1で無限に繰り返します。 |
balance |
0 |
左右の音量のバランスを指定します。(-10000〜10000) |
volume |
--- |
音量を指定します。(-10000〜0) |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=shift_jis">
<title>Sample</title>
<bgsound src="hydrancer.mid" balance="0" loop="2">
</head>
<body>
<h1>Sample</h1>
<p>
IEだけ音楽が流れます。
</p>
</body>
</html>