ÁöÁ¤µÈ behavior°¡ ÷ºÎµÈ ¸ðµç °³Ã¼µéÀÇ Ä÷º¼ÇÀ» ¹ÝȯÇÑ´Ù.
¹Ýȯ°ª oCollÀº ¼º°øÀûÀÌ¸é °³Ã¼µéÀÇ Ä÷º¼ÇÀ», ½ÇÆÐÇϸé nullÀ» ¹ÝȯÇÑ´Ù.
ÀÌ ¸Þ¼µå´ÂºñÇìÀ̹ö°¡ ÷ºÎµÈ °ÍÀÌ ¾øÀ¸¸é ºó Ä÷º¼ÇÀ» ¹ÝȯÇÑ´Ù.
length ¼Ó¼ºÀ» »ç¿ëÇÏ¿© Ä÷º¼Ç¿¡ Æ÷ÇԵǾî ÀÖ´Â °³Ã¼µéÀÇ °¹¼ö¸¦ ¾Ë ¼ö ÀÖ°í, item ¸Þ¼µå¸¦ »ç¿ëÇÏ¿© Ä÷º¼Ç¿¡¼ ƯÁ¤ Ç׸ñ¸¦ ¾òÀ» ¼ö ÀÖ´Ù.
°³Ã¼ | script | IE |
---|
urns ¸Þ¼µå·Î Ä÷º¼ÇÀ¸·ÎºÎÅÍ ÁöÁ¤µÈ ºñÇìÀ̹ö°¡ ÷ºÎµÈ °³Ã¼µéÀÇ Ä÷º¼ÇÀ» ¾ò´Â´Ù.
<HTML xmlns:t ="urn:schemas-microsoft-com:time"> <HEAD> <IMPORT namespace="t" implementation="#default#time2"> <STYLE>.time{ behavior: url(#default#time2);}</STYLE> <SCRIPT> function showColl(){ var coll = document.all.urns('#default#time2'); var str = 'coll.length='+coll.length+'<BR>'; if (coll != null){ for (i=0; i < coll.length; i++) str += 'coll.item('+i+').id='+coll.item(i).id + '<BR>'; showA.innerHTML=str; } } </SCRIPT> </HEAD> <BODY> ¹®¼ ŸÀ̸Ó: <SPAN id="Timer1" class="time" dur="1" repeatCount="indefinite" onrepeat="innerText=parseInt(Timer1.currTimeState.activeTime);" style="color:red">0</SPAN><BR> ½Ã°£¿ë±â ŸÀ̸Ó: <SPAN id="Timer2" class="time" dur="1" repeatCount="indefinite" onrepeat="innerText=parseInt(Timer2.currTimeState.activeTime);" style="color:blue">0</SPAN><BR> <BUTTON onclick=showColl()>urn º¸±â</BUTTON> <DIV id=showA></DIV>