옮겨온 자료들/유익한 정보

음악파일

오라이파이 2011. 6. 12. 11:22

   음악파일(음원)은 *.mid, *.wma, *.asf, *.asx, *.mp3, *.swf 등의 음악파일확장자를 사용할 수 있어요.

   그리고 미리 음악파일을 인터넷의 일정공간에 업로드를 해놓으셔야겠죠.

   그래야 음악파일이 주소를 가져서 해당주소에 있는 파일을 불러올 수 있으니까요.

 

   기본적인 음악 삽입 태그 <embed src="음악파일주소"> 입니다.

   태그 중에 embed 태그 말고도 사용되는 태그들이 있긴 하지만 주로 embed 태그를 많이 사용한답니다.

 

   그리고 아래에는 embed 태그 괄호안에 들어가는 옵션들입니다.

   아래 옵션들을 삽입하시게 되면 노래반복횟수 및 플레이어를 숨기기도하고, 플레이어 모양을 바꾸기도 할 수 있어요.

 

자동으로 들을때 autostart=true 또는 ="-1"

수동으로 들을때 autostart=false 또는 ="0"

노래바 감출경우 hidden=true [반대(노래바나타내기) =false ]

노출바 가로크기 width=300 (175. * 75.)

노출바 세로크기 height=45 ( 25. * 70.)

반복 계속들을때 loop="-1" 또는 ="true"

제한적 들을때 loop="듣고싶은숫자 넣기"

볼륨 크게들을때 volume="0"

볼륨 중음들을때 volume="70"

볼륨 적게들을때 volume="30"

노래바 형태(A) showcontrols="1" [일반적인것 =2단?] (300 ×45)

노래바 형태(B) showstatusbar="1" [밑.내용기재 =3단?] (300 ×70)

노래바 색(회색) style="filter:xray()"

노래바 색(검정) style="filter:gray()"

노래바 색(근본) style="filter:alpha()"

 


기본 embed 태그

<EMBED style="LEFT: 0px; WIDTH: 300px; TOP: 53px; HEIGHT: 45px" src="http://음악파일주소" width=300 height=45 type=audio/midi volume="0" autostart="-1">


수정 1

<EMBED style="FILTER:gray alpha (opacity=100, style=2,finishopacity=0)" src="http://음악파일주소" type=audio/midi width=300 height=25 volume="0" autostart="0">

 

수정2
<EMBED style="FILTER: gray alpha (opacity=50, style=1,finishopacity=50)" src="http://음악파일주소" width=300 height=25 type=audio/midi autostart="0" volume="0">

 

수정3
<EMBED style="filter:xray()" src="http://음악파일주소" width=300 height=45 type=audio/midi autostart="0" volume="0">

 

수정4
<EMBED src="http://음악파일주소" width=300 height=70 s autostart="-1" loop="-1" showstatusbar="true" volume="0">

 

다양하게 수정해서 사용하시면 됩니다.

type 부분은 생략해서 사용하셔도 되는데요, 익스플로러(인터넷창)의 경우 알아서 셋팅이 된답니다.

미디음원이 아닐 경우에는 다르게 설정해 주시거나 생략해서 사용하세요.

 

    <EMBED src="http://음악파일주소" width=250 height=30 type=audio/mpeg controller="true"> 의 경우 mp3파일이 재생

    된답니다.

    아래처럼요...^^