Jojoxx.net

 

 

AnvändareAnvändare
Besökare just nu: 104
SnabblänkarSnabblänkar
JavaScript-arkivet
Perl
FAQ
Sök på Jojoxx.netSök på Jojoxx.net



Visa information

Exempel

Kod


<table style="border-collapse:separate;border-spacing:0px 0px;">
<script language="JavaScript">jsver=1.0;</script> 
<script language="JavaScript1.1">jsver=1.1;</script> 
<script language="JavaScript1.2">jsver=1.2;</script> 
<script language="JavaScript1.3">jsver=1.3;</script> 
<script language="JavaScript1.4">jsver=1.4;</script> 
<script language="JavaScript1.5">jsver=1.5;</script> 
<script language="JavaScript1.6">jsver=1.6;</script> 
<script type="text/javascript">
var info=new Object();
info['JavaScript version']=jsver;
if(document.layers){
	eval("var scr"+"een=new Packages.java.awt.Toolkit.getDefaultToolkit().getScreenSize();");
}
info['Upplösning']=screen.width+"x"+screen.height;
info['Webbläsare']=navigator.appName;
info['Kompatibilitet etc.']=navigator.appVersion;
info['Plattform']=navigator.platform;
info['Javastöd']=(navigator.javaEnabled())?"Ja":"Nej";
if(typeof(navigator.onLine) != "undefined"){
	info['Online mode']=(navigator.onLine)?"online":"offline";
}
if(typeof(navigator.cpuClass) != "undefined"){
	info['CPU typ']=navigator.cpuClass;
}
info['ActiceX-stöd']=(typeof(window.ActiveXObject)=="undefined")?"Nej":"Ja";
var hasFlash=(typeof navigator.plugins == "undefined" || navigator.plugins.length == 0) ? !!(new ActiveXObject("ShockwaveFlash.ShockwaveFlash")) : navigator.plugins["Shockwave Flash"];
info['Flash-stöd']=(hasFlash)?"Ja":"Nej";
var n=true;
for(key in info){
	var style=(n)?"background-color:#eee;":""; n=!n;
	document.write("<tr style=\""+style+"\"><td>"+key+"</td><td>"+info[key]+"</td></tr>\n");
} 
</script>
</table>

Kommentar

Bara att klippa och klistra.

,