📄 client_capabilities.htm
字号:
<html XMLNS:CC>
<head>
<STYLE>
@media all { CC\:clientCaps {behavior:url(#default#clientCaps)}}
.Title { color:darkblue;font-weight:bold;text-decoration:underline }
.Values { position:relative;top:-20 }
</Style>
<title>Client Capabilities</title>
</head>
<body onload="getClientCaps()" bgcolor="#FFFFFF">
<CC:clientCaps id=clientCaps />
<table border="0" width="100%">
<tr>
<td width="30%"><img border="0" src="computer.gif" width="135" height="132"></td>
<td width="70%">
<p align="left"><b><font size="7">Client Capabilities</font></b></p>
</td>
</tr>
</table>
<div>
<span class=title>Screen Dimensions</span>
<pre id=displayScreenDim class=values></pre>
</div>
<div style="position:relative;top:-45">
<span class=title>Screen Color Attributes</span>
<pre id=displayColorAttr class=values></pre>
</div>
<div style="position:relative;top:-90">
<span class=title>Browser Capabilities</span>
<pre id=displayBrowserCaps class=values></pre>
</div>
<div style="position: relative; top: -135; width: 700; height: 6">
<span class=title>Miscellaneous Client </span>
<span class=title>Capabilities</span>
<pre id=displayMiscCaps class=values></pre>
</div>
<div style="position:relative;top:-180">
<span class=title>Components Installed</span>
<table id=tblComponent border="1" width="84%">
<tr>
<td width="36%" bgcolor="#C0C0C0">Component Name</td>
<td width="15%" bgcolor="#C0C0C0">Installed</td>
<td width="28%" bgcolor="#C0C0C0">Version</td>
</tr>
</table>
</div>
</body>
<script language=javascript>
function getClientCaps(){
var sTemp = '';
var sHTML;
var newRow;
sTemp = sTemp + 'Available Height (availHeight) = ' + clientCaps.availHeight + '\n';
sTemp = sTemp + 'Height (height) = ' + clientCaps.height + '\n';
sTemp = sTemp + 'Available Width (availWidth) = ' + clientCaps.availWidth + '\n';
sTemp = sTemp + 'Width (width) = ' + clientCaps.width + '\n\n';
displayScreenDim.innerText = sTemp;
sTemp = 'Color Depth (colorDepth) = ' + clientCaps.colorDepth + '\n';
sTemp = sTemp + 'Buffer Depth (bufferDepth) = ' + clientCaps.bufferDepth + '\n\n';
displayColorAttr.innerText = sTemp;
sTemp = 'Cookies Enabled (cookieEnabled) = ' + clientCaps.cookieEnabled + '\n';
sTemp = sTemp + 'Microsoft virtual machine enabled (javaEnabled) = ' + clientCaps.javaEnabled + '\n';
sTemp = sTemp + 'Platform the Browser is running on (platform) = ' + clientCaps.platform + '\n';
sTemp = sTemp + 'CPU Type (cpuClass) = ' + clientCaps.cpuClass + '\n\n';
displayBrowserCaps.innerText = sTemp;
sTemp = 'Connection Type (connectionType) = ' + clientCaps.connectionType + '\n';
sTemp = sTemp + 'Default System Language (systemLanguage) = ' + clientCaps.systemLanguage + '\n';
sTemp = sTemp + 'Current User Language (userLanguage) = ' + clientCaps.userLanguage + '\n\n';
displayMiscCaps.innerText = sTemp;
showComponentStatus();
}
function showComponentStatus(){
displayComponent('Address Book', '{7790769C-0471-11D2-AF11-00C04FA35D02}');
displayComponent('DirectAnimation', '{283807B5-2C60-11D0-A31D-00AA00B92C03}');
displayComponent('DirectAnimation Java Classes', '{4F216970-C90C-11D1-B5C7-0000F8051515}');
displayComponent('DirectShow', '{44BBA848-CC51-11CF-AAFA-00AA00B6015C}');
displayComponent('Dynamic HTML Data Binding', '{9381D8F2-0288-11D0-9501-00AA00B911A5}');
displayComponent('Dynamic HTML Data Binding for Java', '{4F216970-C90C-11D1-B5C7-0000F8051515}');
displayComponent('Internet Connection Wizard', '{5A8D6EE0-3E18-11D0-821E-444553540000}');
displayComponent('Internet Explorer 5 Web Browser', '{89820200-ECBD-11CF-8B85-00AA005B4383}');
displayComponent('Internet Explorer Classes for Java', '{08B0E5C0-4FCB-11CF-AAA5-00401C608555}');
displayComponent('Internet Explorer Help', '{45EA75A0-A269-11D1-B5BF-0000F8051515}');
displayComponent('Internet Explorer Help Engine', '{DE5AED00-A4BF-11D1-9948-00C04F98BBC9}');
displayComponent('Windows Media Player', '{22D6F312-B0F6-11D0-94AB-0080C74C7E95}');
displayComponent('NetMeeting NT', '{44BBA842-CC51-11CF-AAFA-00AA00B6015B}');
displayComponent('Offline Browsing Pack', '{3AF36230-A269-11D1-B5BF-0000F8051515}');
displayComponent('Outlook Express', '{44BBA840-CC51-11CF-AAFA-00AA00B6015C}');
displayComponent('Task Scheduler', '{CC2A9BA0-3BDD-11D0-821E-444553540000}');
displayComponent('Microsoft virtual machine', '{08B0E5C0-4FCB-11CF-AAA5-00401C608500}');
displayComponent('VRML 2.0 Viewer', '{90A7533D-88FE-11D0-9DBE-0000C0411FC3}');
displayComponent('Wallet', '{1CDEE860-E95B-11CF-B1B0-00AA00BBAD66}');
}
function displayComponent(compDesc, compID){
var newCell;
var sFunc;
newRow = document.all.tblComponent.insertRow();
newCell = newRow .insertCell();
newCell.width = '36%';
newCell.innerText = compDesc;
newCell = newRow .insertCell();
newCell.width = '15%';
if (clientCaps.isComponentInstalled(compID, "componentID")){
newCell.innerText = 'Yes';
newCell = newRow .insertCell();
newCell.width = '28%';
newCell.innerText = clientCaps.getComponentVersion(compID, "ComponentID");
}
else{
sFunc = "addComponent('" + compID + "');";
newCell.innerHTML = '<input type="button" value="Install" name="installComp" onclick="' + sFunc + '">'
newCell = newRow .insertCell();
newCell.width = '28%';
newCell.innerText = ' ';
}
}
function addComponent(compID){
var bAvailable;
var i;
var row;
clientCaps.addComponentRequest('{90A7533D-88FE-11D0-9DBE-0000C0411FC3}', 'componentid');
bAvailable = clientCaps.doComponentRequest();
// debugger;
if (bAvailable == true){
//remove the rows from table and redisplay them
for (i=document.all.tblComponent.rows.length - 1; i > 0 ; i--){
row = document.all.tblComponent.rows[i];
row.removeNode(true);
}
showComponentStatus();
}
}
</script>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -