Javascript¼ì²âMedia Player°æ±¾£¡
ÔÚweb¿ª·¢¹ý³ÌÖУ¬¾³£»á³öÏÖÒòΪ¿Í»§¶ËµÄijЩÈí¼þ°æ±¾ÎÊÌ⣬¶øµ¼ÖÂÖÖÖÖÎÊÌâ¡£ÕâÀ´Ìì¾ÍÒòΪMedia Player°æ±¾µÄÎÊÌ⣬Òý·¢ÁËÒ»¸ö²»´ó²»Ð¡µÄÎÊÌâ¡£ÔÚµ÷ÓÃMedia Player²¥·ÅÊÓÆµµÄʱºò£¬Media Player9¾¹È»²¥·Å²»ÁË ... ...
²»¶à˵ÁË£¬»¹ÊÇÌù´úÂë°É£¡
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Javascript¼ì²âMedia Player°æ±¾</title>
<IE:clientCaps ID="oClientCaps" style="{behavior:url(#default#clientcaps)}" />
<script language="javascript">
var flash="";
WMPVersion= oClientCaps.getComponentVersion("{22D6F312-B0F6-11D0-94AB-0080C74C7E95}","ComponentID");
if (WMPVersion != "") {
if(eval(WMPVersion.split(",")[0])<10)
{alert("Äúµ±Ç°ÏµÍ³µÄMedia Player°æ±¾¹ýµÍ,¿ÉÄÜÓ°ÏìÄúµÄÕý³£¹Û¿´!\n\n½¨ÒéÄú¸üÐÂÖÁMedia Player 10»òÒÔÉϰ汾.");}
}
</script>
</head>
<body>
</body>
</html>
Æäʵ¿ÉÒÔͨ¹ýJS¼ì²âµÄÆäËû°æ±¾ÐÅÏ¢»¹Óкܶ࣬±ÈÈ磺
¼ì²âIE°æ±¾£º
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>ÎÞ±êÌâÎĵµ</title>
<script language="javascript">
function GetIEVersion()
{
try
{
if(!window.clientInformation)
return false;
if(window.clientInformation.appName.toLowerCase()!="microsoft internet explorer")
return false;
if(window.clientInformation.appVersion.toLowerCase().indexOf("msie")==-1)
return false;
var a=window.clientInformation.appVersion.toLowerCase().split(";");
for(var i=0;i<a.length;i++)
{
a[i]=a[i].replace(/^\s+$/g,"");
if(a[i].indexOf("msie")==1)
{
var version=a[i].substr(5,a[i].indexOf(".")-2);
alert("Ä
Ïà¹ØÎĵµ£º
1.<select></select>±êǩӦÓÃ
ͨ³£µÄд·¨ÊÇ£º
<select onchange="javascript:windwo.open(this.options[this.selectedIndex].value)">
<option>MAIN</option>
& ......
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>select-option onclick </title>
<script type="text/javascript" >
function simOptionClick4IE(){  ......
1.javascript¤ÇURL¤Î"?"ÒÔ½µ¤Î¥Ñ¥é¥áー¥¿¤òÈ¡µÃ£º
var query = window.location.search.substring(1);
var pairs = query.split("&");
2.IEä¯ÀÀÆ÷ĬÈϵŦÄÜÍ£Ö¹
£¨Tab¼üÔÚµØÖ·À¸µÈÖеÄÒÆ¶¯Í£Ö¹£©
function stopDefaultKey(){
window.e ......
ÔÚjavascriptÖжÔÏóͨ³£°üÀ¨Á½ÖÖÀàÐÍ£ºÄÚÖöÔÏóºÍä¯ÀÀÆ÷¶ÔÏ󣬴ËÍ⣬Óû§»¹¿ÉÒÔ×Ô¶¨Òå¶ÔÏó¡£
¶ÔÏó°üº¬Á½¸öÒªËØ£º1.ÓÃÀ´ÃèÊö¶ÔÏóÌØÐÔµÄÒ»×éÊý¾Ý£¬Ò²¾ÍÊÇÈô¸É±äÁ¿£¬Í¨³£³ÆÎªÊôÐÔ¡£2.ÓÃÀ´²Ù×÷¶ÔÏóÌØÐÔµÄÈô¸É¶¯×÷£¬Ò²¾ÍÊÇÈô¸Éº¯Êý£¬Í¨³£³ÆÎª·½·¨¡£
ä¯ÀÀÆ÷¶ÔÏó
¶ÔÏó
º¬Òå
anchor
µ±Ç°ÎĵµÖÐÉèÖÃÁËnameÊôÐԵij¬Á´½Ó
appl ......