<html>
	<head>
	<script language="javascript">
		function dotnet() {
			var ag = navigator.userAgent;
			if (ag.indexOf("IE")!=-1) {
				if (ag.indexOf("NET CLR") != -1) {
					if (ag.indexOf("NET CLR 1.0")!= -1) {
						document.write(".net Framework version 1.0 found.<br/>");
					}
					if (ag.indexOf("NET CLR 1.1")!= -1) {
						document.write(".net Framework Version 1.1 found.<br/>");
					}
					if (ag.indexOf("NET CLR 2")!= -1) {
						document.write(".net Framework Version 2 found.<br/>");
					}
				} else {
					document.write("No .net Framework found.<br/>Please install the .net Framework.");
				}
			} else {
				document.write("The automatic detection of the .net framework only works in Internet Explorer.");
			}
		}
	</script>
	</head>
	<body>
		<div style="background-color: FFCC00; border-width: 1; border-style: solid; border-color: 000000; 
	width: 800px; padding: 4px; line-height: 14px;">
			.net Framework Status
		</div>
		<div style="border-width: 0px 1px 1px 1px; border-style: solid; border-color: 000000; width: 800px; 
	padding: 4px;">
			<script language="javascript">dotnet();</script>
		</div>
	</body>
</html>


출처 : http://www.codeschmiede.net/dotnettester_en.html


반응형

+ Recent posts