¿¤·¹¸àÆ®ÀÇ ½Ã°£ÀÌ ÀϽÃÁßÁö(pause)ÇÏ¸é ¹ß»ýµÈ´Ù.
À̺¥Æ® ¼Ó¼º |
object.onpause=handler | JScript ¸¸- |
---|---|---|
object.onpause=GetRef("handler") | VBScript 5.0- | |
ÀζóÀÎ HTML | <ELEMENT onpause="handler"> | ¸ðµç Ç÷§Æ®Æû |
¸í¸íµÈ ½ºÅ©¸³Æ® | <SCRIPT for=object event=onpause> | Explorer- |
Bubbles | ¾øÀ½ |
---|---|
Ãë¼Ò | ºÒ°¡ |
¹ß»ý ¿øÀÎ | pauseElement ¸Þ¼µå¸¦ È£ÃâÇÑ´Ù. |
µðÆúÆ® ÀÛ¿ë | ¿¬°üµÈ À̺¥Æ®Ã³¸®ÀÚ¸¦ È£ÃâÇÑ´Ù. |
srcElement | À̺¥Æ®°¡ ¹ß»ýÇÑ °³Ã¼¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. |
type | À̺¥Æ® °³Ã¼·ÎºÎÅÍÀÇ À̺¥Æ®ÀÇ À̸§(À̺¥Æ®ÀÇ Á¾·ù)¸¦ ¼³Á¤Çϰųª ¹ÝȯÇÑ´Ù. |
onpause À̺¥Æ®´Â body ¿¤·¹¸àÆ®¸¦ Æ÷ÇÔÇÏ¿© È°¼º Áß¿¡ ÀÖ´Â °¢ ¿¤·¹¸àÆ®¿¡¼ ÀϽÃÁßÁöÇÏ¸é ¹ß»ýÇÑ´Ù.
°³Ã¼ | script | HTML | IE |
---|
¿µ¹® SMIL(Synchronized Multimedia Integration Language) ±Ô°ÝÀÇ È®ÀåÀÌ´Ù.
onpause À̺¥Æ®µîÀ¸·Î ÀÓÁöÁßÁöµîÀ» µð½ºÇ÷¹ÀÌÇÑ´Ù.
<HTML xmlns:t="urn:schemas-microsoft-com:time"> <HEAD> <TITLE>onpause Event</TITLE> <IMPORT namespace="t" implementation="#default#time2"> <STYLE>.time {behavior:url(#default#time2);}</STYLE> </HEAD> <BODY> ½Ã°£ ¿ë±â ŸÀÌ¸Ó : <SPAN id="Timer2" class="time" dur="1" repeatCount="indefinite" onrepeat="innerText=parseInt(timeObj.currTimeState.activeTime);">0</SPAN><BR> À̵¿ °³Ã¼ ŸÀ̹ö : <SPAN id="Timer3" class="time" dur="1" repeatCount="indefinite" onrepeat="innerText=parseInt(aniObj.currTimeState.activeTime);">0</SPAN> <P></P> <T:excl id="timeObj" begin="indefinite" dur="9" repeatCount="5" onpause="showA.innerHTML='<FONT color=red><B>Àӽà ÁßÁöµÊ !</B></FONT>';" onresume="showA.innerHTML='´Ù½Ã °è¼ÓµÊ';" onend="showA.innerHTML='Á¾·áµÊ';" onbegin="showA.innerHTML='°á°ú Ç¥½ÃÀå';"> <T:ANIMATEMOTION id="aniObj" targetElement="div1" to="300,0" begin="0" dur="5" autoReverse="true" /> </T:excl> <DIV id="div1" class="time" style="position:relative;top:5px;left:5px;height:40px;width:100px; background-color:yellow;text-align:center;font-size:16;border:solid black 1;padding:5">À̵¿ °³Ã¼</DIV> <P><BR> <BUTTON id="b1" onclick="timeObj.beginElement();">½Ã°£ ½ÃÀÛ</BUTTON> <BUTTON id="b2" onclick="timeObj.pauseElement();">Àӽà ÁßÁö</BUTTON> <BUTTON id="b3" onclick="timeObj.resumeElement();">´Ù½Ã °è¼Ó</BUTTON> <BUTTON id="b4" onclick="timeObj.endElement();">½Ã°£ Á¾·á</BUTTON> </P> <DIV id=showA>°á°ú Ç¥½ÃÀå</DIV> </BODY> </HTML>