Jah så skidt! *G* ;)
_________________________________________________________________
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Tjekker system!</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
hr {
height: 1px;
line-height: 1px;
}
-->
</style>
<style type="text/css">
<!--
.checktxt {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333333;
}
.border {
border: 2px solid #DCDCDC;
}
-->
</style>
<SCRIPT LANGUAGE="Javascript">
var browserVers =5;
var flashVers = 6;
var qtVers = 5;
var timing = 500;
var redir = "main.htm";
var Netscape, MSIE, Opera, Unknown;
var Win, Mac, Other;
var NetscapeVer, MSIEVer, OperaVer;
// detect browser
Netscape = navigator.appName == "Netscape";
MSIE = navigator.appName == "Microsoft Internet Explorer";
Opera = navigator.userAgent.indexOf("Opera") > -1;
Unknown = !(Netscape || MSIE || Opera);
// detect platform
Win = navigator.userAgent.indexOf("Win") > -1;
Mac = navigator.userAgent.indexOf("Mac") > -1;
Other = !(Win || Mac);
// now extract version numbers
if(Netscape) {
NetscapeVer = parseFloat(navigator.appVersion);
}
else if(MSIE) {
n = navigator.userAgent;
MSIEVer = n.substr(n.indexOf("MSIE ")+("MSIE ").length, 4);
MSIEVer = parseFloat(MSIEVer);
// converts it into a floatint point number
if(Opera) {
OperaVer = n.substr(n.indexOf("Opera ")+("Opera ").length, 4);
OperaVer = parseFloat(OperaVer);
}
}
if(Netscape) {
iecheck = false;
}
else if(MSIE)
{
if(Opera) {
iecheck = false;
}
else if(MSIEVer >= browserVers) {
iecheck = true;
}
}
else {
iecheck = false;
}
var flashinstalled = 0;
var flashversion = 0;
MSDetect = "false";
if (navigator.plugins && navigator.plugins.length)
{
x = navigator.plugins["Shockwave Flash"];
if (x)
{
flashinstalled = 2;
if (x.description)
{
y = x.description;
flashversion = y.charAt(y.indexOf('.')-1);
}
}
else
flashinstalled = 1;
if (navigator.plugins["Shockwave Flash 2.0"])
{
flashinstalled = 2;
flashversion = 2;
}
}
else if (navigator.mimeTypes && navigator.mimeTypes.length)
{
x = navigator.mimeTypes['application/x-shockwave-flash'];
if (x && x.enabledPlugin)
flashinstalled = 2;
else
flashinstalled = 1;
}
else
MSDetect = "true";
// -->
</SCRIPT>
<SCRIPT LANGUAGE="VBScript">
on error resume next
If MSDetect = "true" Then
For i = 2 to 6
If Not(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & i))) Then
Else
flashinstalled = 2
flashversion = i
End If
Next
End If
If flashinstalled = 0 Then
flashinstalled = 1
End If
</SCRIPT>
<SCRIPT LANGUAGE="Javascript" TYPE="text/javascript">
<!--
if (flashinstalled == 2)
{
if (flashversion == flashVers)
{
flashcheck = true;
}else{
flashcheck = false;
}
}
// -->
</SCRIPT>
<script language="javascript" type="text/javascript" src="detect/quicktime_detect.js">
<!--
function getQuicktimeVersion() { return null; };
//-->
</script>
<script language="javascript" type="text/javascript">
var quicktimeVersion = getQuicktimeVersion();
if (quicktimeVersion >= qtVers) {
qtcheck = true;
}
else {
qtcheck = false;
}
//-->
</script>
<script language="JavaScript">
<!--
function startChecker(){
setTimeout('iexplore()', timing);
document.all.ie.src = "detect/img/searching.gif";
}
function iexplore(){
setTimeout('flashF()', timing);
document.all._flash.src = "detect/img/searching.gif";
if (iecheck){
document.all.ie.src = "detect/img/accepted.gif";
}else{
document.all.ie.src = "detect/img/failed.gif";
}
}
function flashF(){
setTimeout('quickT()', timing);
document.all.qt.src = "detect/img/searching.gif";
if (flashcheck){
document.all._flash.src = "detect/img/accepted.gif";
}else{
document.all._flash.src = "detect/img/failed.gif";
}
}
function quickT(){
setTimeout('allDone()', 1000);
if (qtcheck){
document.all.qt.src = "detect/img/accepted.gif";
}else{
document.all.qt.src = "detect/img/failed.gif";
}
}
function allDone(){
if (iecheck && flashcheck && qtcheck){
window.location = redir;
}
num = 1;
var image = eval("down"+num);
var hotspot = eval("link"+num);
if (!iecheck){
image.src = "detect/img/ie_down.gif"
hotspot.href = "
http://www.microsoft.com/windows/ie_intl/da"; hotspot.target = "_blank";
num++;
image = eval("down"+num);
hotspot = eval("link"+num);
}
if (!flashcheck){
image.src = "detect/img/flash_down.gif";
hotspot.href = "
http://www.macromedia.com/go/getflashplayer"; hotspot.target = "_blank";
num++;
image = eval("down"+num);
hotspot = eval("link"+num);
}
if (!qtcheck){
image.src = "detect/img/quick_down.gif";
hotspot.href = "
http://www.apple.com/quicktime/download"; hotspot.target = "_blank";
}
}
-->
</script>
<style type="text/css">
<!--
a {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
color: #000066;
text-decoration: none;
}
-->
</style>
</head>
<body bgcolor="#FFFFFF" link="#003366" vlink="#666666" alink="#003366" onLoad="startChecker()">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle"><table width="100" height="260" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><table border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F4F4F4" class="border">
<!--DWLayoutTable-->
<tr>
<td width="332" height="25" bgcolor="DCDCDC"><strong><font color="DCDCDC" size="2" face="Verdana, Arial, Helvetica, sans-serif">k</font><font color="0D3956" size="2" face="Verdana, Arial, Helvetica, sans-serif">Tjekker
system resurser:</font></strong></td>
</tr>
<tr>
<td height="142" valign="top"><table width="0" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="10"><img src="detect/img/info.gif" width="330" height="52"></td>
</tr>
<tr>
<td height="91"><div align="center">
<table width="98%" border="0" cellpadding="2" cellspacing="4">
<tr>
<td bgcolor="#FFFFFF" class="checktxt">
<div align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!--DWLayoutTable-->
<tr>
<td width="199" valign="middle" class="checktxt">
<div align="right">Microsoft Internet
Explorer v5.0</div>
</td>
<td width="112" valign="bottom" class="checktxt"><img id="ie" name="ie" src="detect/img/waiting.gif" width="112" height="17"></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" class="checktxt">
<div align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!--DWLayoutTable-->
<tr>
<td height="18" valign="middle" class="checktxt"><div align="right">Macromedia
Flash Plug-in v6.0</div>
</td>
<td width="10" valign="bottom" class="checktxt"><img src="detect/img/waiting.gif" name="_flash" width="112" height="17" id="_flash"></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" class="checktxt">
<div align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!--DWLayoutTable-->
<tr>
<td height="18" valign="middle" class="checktxt"><div align="right">Apple
Quicktime Player v5.0</div>
</td>
<td width="10" valign="bottom" class="checktxt"><img name="qt" src="detect/img/waiting.gif" width="112" height="17"></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="19"><div align="center"><a href="
http://www.sylvester-hvid.dk" target="_blank"><img src="detect/img/sylvester.gif" width="129" height="19" border="0"></a></div>
</td>
</tr>
<tr>
<td height="120" class="checktxt" valign="top"><br>
For at kunne se denne side optimalt, kræver det at du har<br>
<br>
<a name="link1"><img src='detect/img/blank.gif' name='down1' width='334' height='24' border="0"></a><br>
<a name="link2"><img src='detect/img/blank.gif' name='down2' width='334' height='24' border="0"></a><br>
<a name="link3"><img src='detect/img/blank.gif' name='down3' width='334' height='24' border="0"></a></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
_________________________________________________________________
Og en lille .js
// Quicktime Detection v1.0
//
http://www.dithered.com/javascript/quicktime_detect/index.html// code by Chris Nott (chris@NOSPAMdithered.com - remove NOSPAM)
var quicktimeVersion = 0;
function getQuicktimeVersion() {
var agent = navigator.userAgent.toLowerCase();
// NS3+, Opera3+, IE5+ Mac (support plugin array): check for Quicktime plugin in plugin array
if (navigator.plugins != null && navigator.plugins.length > 0) {
for (i=0; i < navigator.plugins.length; i++ ) {
var plugin =navigator.plugins[i];
if (plugin.name.indexOf("QuickTime") > -1) {
quicktimeVersion = parseFloat(plugin.name.substring(18));
}
}
}
// IE4+ Win32: attempt to create an ActiveX object using VBScript
else if (agent.indexOf("msie") != -1 && parseInt(navigator.appVersion) >= 4 && agent.indexOf("win")!=-1 && agent.indexOf("16bit")==-1) {
document.write('<scr' + 'ipt language="VBScript"\> \n');
document.write('on error resume next \n');
document.write('dim obQuicktime \n');
document.write('set obQuicktime = CreateObject("QuickTimeCheckObject.QuickTimeCheck.1") \n');
document.write('if IsObject(obQuicktime) then \n');
document.write(' if obQuicktime.IsQuickTimeAvailable(0) then \n');
document.write(' quicktimeVersion = CInt(Hex(obQuicktime.QuickTimeVersion) / 1000000) \n');
document.write(' end if \n');
document.write('end if \n');
document.write('</scr' + 'ipt\> \n');
}
// Can't detect in all other cases
else {
quicktimeVersion = quicktimeVersion_DONTKNOW;
}
return quicktimeVersion;
}
quicktimeVersion_DONTKNOW = -1;