µÎ°³ÀÇ ¹öÀü ¹øÈ£¸¦ ºñ±³ÇÑ´Ù.

Àμö/ÆĶó¸ÞÅÍ
version1
ÇʼöÀûÀÎ ¿ä¼ÒÀ̸ç, ºñ±³ÇÒ Ã¹¹ø° ¹öÀüÀ» ³ªÅ¸³»´Â ¹®ÀÚ¿­ÀÌ´Ù.
version2
ÇʼöÀûÀÎ ¿ä¼ÒÀ̸ç, ºñ±³ÇÒ µÎ¹ø¹ø° ¹öÀüÀ» ³ªÅ¸³»´Â ¹®ÀÚ¿­ÀÌ´Ù.
¹Ýȯ°ª

¹Ýȯ°ª iValÀº ºñ±³ °á°ú¸¦ ³ªÅ¸³»´Â Á¤¼ö°ªÀÌ´Ù.

-1 version1°¡ version2º¸´Ù ³·´Ù.
0 version1°¡ version2¿Í °°´Ù.
1 version1°¡ version2º¸´Ù ³ô´Ù.
Àû¿ë
°³Ã¼scriptIE
ÂüÁ¶
clientCaps, behavior, getComponentVersion, isComponentInstalled

¼³Ä¡µÈ Microsoft virtual machine componentÀÇ ¹öÀüÀ» ÁöÁ¤ÇÑ ¹öÀü°ú ºñ±³ÇÑ´Ù.

<HTML xmlns:IE >
<HEAD>
<STYLE>@media all { IE\:clientCaps {behavior:url(#default#clientCaps)}}</STYLE>
</HEAD>

<BODY >
<IE:clientCaps id="oclientCaps" />
<DIV id=showA></DIV>
<SCRIPT>
sMSvmVersion=oclientCaps.getComponentVersion("{08B0E5C0-4FCB-11CF-AAA5-00401C608500}","ComponentID");
comVer='5,0,3810,0';
str='ÇöÀç ¹öÀü sMSvmVersion='+sMSvmVersion+'<BR>';
str+='ºñ±³ ¹öÀü '+comVer+'<BR>';
str+='ÇöÀç ¹öÀüÀº ºñ±³¹öÀü';

if (oclientCaps.compareVersions(sMSvmVersion,comVer)==0) str+='¿Í <FONT color=red>°°´Ù</FONT>.';
else if (oclientCaps.compareVersions(sMSvmVersion,comVer)==-1) str+='º¸´Ù <FONT color=red>³·´Ù</FONT>.';
else str+='º¸´Ù <FONT color=red>³ô´Ù</FONT>.';

showA.innerHTML=str;
</SCRIPT>
</BODY>
</HTML>