HTML 사전

bgsound

경고 : ie에서만 사용할 수 있는 엘리먼트임

설명

The HTML Background Sound Element (<bgsound>) is an Internet Explorer element associating a background sound with a page.

HTML의 배경음악 효과 기능을 하는 <bgsound> 엘리먼트는 인터넷 익스플로러용 엘리먼트에며, 웹페이지에서 배경음악을 틀어주는 것과 관련이 있다.

일반인멘트 : 훔.. 인터넷 익스플로러에서만 사용할 수 있군.. 나는 크롬을 많이 쓰니까, 웹페이지에는 넣지 말아야겠다.

Usage Context 

속성

bgsound 엘리먼트 속성에는 balance, loop, src 등이 있다.

balance(균형)

This attribute defines a number between -10,000 and +10,000 that determines how the volume will be divided between the speakers.
balance 속성값의 범위는 -10,000에서 +10,000 사이이다. 그리고 이 값은 두 개의 스피커에 볼륨을 나누는 방식을 결정한다.
(일반인 질문 : 구체적으로 예를 들어 balance 값이 5000일 때 우측 스피커에 음량이 더 많이 배분된다는 의미인지??)

loop(반복)

This attribute indicates the number of times a sound is to be played and either has a numeric value or the keyword infinite.
loop 속성은 음악을 재생하는 횟수를 나타낸다. 이 값은 수일 수도 있고, infinite이라는 키워드일 수도 있다. infinite의 경우, 무한반복된다. (무한반복된다는 부분은 설명을 추가한 것임..)

src(음악파일의 위치)

This attribute specifies the URL of the sound file to be played, which must be one of the following types: .wav, .au, or .mid.

src 속성값에는 재생시킬 음악 파일이 위치하는 URL이 들어간다. src의 속성값은 다음으로 제한된다 : .wav, .au, .mid

volume(음량 크기)

This attribute defines a number between -10,000 and 0 that determines the loudness of a page's background sound.

volume 속성값의 범위는 -10,000에서 0 사이다. volumn 속성은 웹페이지에서 재생되는 배경음악의 소리크기를 결정한다.

예제

<bgsound src="sound1.mid">
<bgsound src="sound2.au" loop="infinite">

호환성

Desktop
기능 구글크롬 파이어폭스Gecko) 인터넷 익스플로러 Opera Safari
기본적인 지원     지원    
Mobile
기능 안드로이드 파이어폭스 모바일(Gecko) 인터넷 익스플로러 모바일 오페라 모바일 사파리 모바일
기본적인 지원          

참고

원문 - https://developer.mozilla.org/en/HTML/Element/bgsound

댓글

댓글 본문
버전 관리
김나솔
현재 버전
선택 버전
graphittie 자세히 보기