°³Ã¼(¼Ò¸®³ª ºñµð¿À µî)ÀÇ Ç÷¹ÀÌ ¹Ýº¹Çϴ Ƚ¼ö¸¦ ¹ÝȯÇϰųª ÁöÁ¤ÇÑ´Ù.

Àμö
: (¼Ó¼º ¼öÄ¡°ª)
¼Ó¼º°ªÀº °³Ã¼(¼Ò¸®³ª ºñµð¿À µî)ÀÇ Ç÷¹ÀÌ ¹Ýº¹Çϴ Ƚ¼ö¸¦ ³ªÅ¸³»´Â ¼öÄ¡°ªÀÌ´Ù.

-1 ¹«ÇÑÁ¤ ¹Ýº¹ÇÑ´Ù.
0 ¹«ÇÑÁ¤ ¹Ýº¹ÇÑ´Ù.
1 1ȸ Ç÷¹À̵ȴÙ.
count ¹Ýº¹ Ƚ¼ö°¡ ÁöÁ¤ÇÑ Á¤¼ö°ª(count)À¸·Î µÈ´Ù.

ÀÌ ¼Ó¼ºÀº Àбâ/¾²±â·Î µðÆúÆ®°ªÀº 1ÀÌ´Ù.

Ư±â

´ÙÀ½ °æ¿ì¿¡ ÇѹøÀÇ ·çÇÁ°¡ ¹ß»ýµÈ´Ù.

<BGSOUND loop> ÇѹøÀÇ ·çÇÁ
<BGSOUND loop=0> ÇѹøÀÇ ·çÇÁ
<BGSOUND loop=> ÇѹøÀÇ ·çÇÁ

loop ¼Ó¼ºÀ» º¯°æÇÏ°í ¹Ý¿µÇÏ·Á¸é ´Ù½Ã Ç÷¹ÀÌÇؾßÇÑ´Ù.
À̸¦ À§ÇÏ¿© src ¼Ó¼ºÀ̳ªdynsrc ¼Ó¼ºÀ» ´Ù½Ã È£ÃâÇÏ¸é µÈ´Ù.

BGSoundObj.src=BGSoundObj.src

IE4.0¿¡¼­ loop ¼Ó¼ºÀ»À» º¯°æÇÏ°í ´Ù½Ã È£ÃâÇÏ¸é »õ·Î¿î À©µµ¿ì°¡ ¿­¸®¸é¼­ Ç÷¹À̵ȴÙ.

Àû¿ë
°³Ã¼scriptHTML±Ô°ÝIE
ÂüÁ¶
bgSound

<SCRIPT>
function doPlay(job) {
  if (job==0) soundObj.src=showA.innerHTML='';
  else {
    soundObj.src='http://trio.co.kr/sound/flute2.mid';
    soundObj.loop=job;
    showA.innerHTML='soundObj.loop=<FONT color=blue>'+soundObj.loop+'</FONT>';
  }
}
</SCRIPT>
<BGSOUND id="soundObj" src="http://trio.co.kr/sound/flute2.mid" loop=1>
<BUTTON onclick="doPlay(1)">1ȸ ¿¬ÁÖ</BUTTON>
<BUTTON onclick="doPlay(2)">2ȸ ¿¬ÁÖ</BUTTON>
<BUTTON onclick="doPlay(3)">3ȸ ¿¬ÁÖ</BUTTON>
<BUTTON onclick="doPlay(4)">4ȸ ¿¬ÁÖ</BUTTON>
<BUTTON onclick="doPlay(-1)">¹«ÇÑ ·çÇÁ</BUTTON>
<BUTTON onclick="doPlay(0)">À½¾Ç ÁßÁö</BUTTON>
<DIV id=showA></DIV>