Er denne kode korrekt, hvis jeg ikke vil bruge redirect?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--#INCLUDE file="../includes/lang_include.asp"-->
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>..:: © Louise ::..</title>
<link href="../stylesheets/text.css" rel="stylesheet" media="screen">
<META HTTP-EQUIV="expires" CONTENT="0">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
<!--
// moock fpi [f.lash p.layer i.nspector]
// version: 1.3.5
// written by colin moock
// code maintained at:
http://www.moock.org/webdesign/flash/detection/moockfpi/// terms of use posted at:
http://www.moock.org/terms/ -->
var requiredVersion = 6;
var useRedirect = false;
var flash2Installed = false;
var flash3Installed = false;
var flash4Installed = false;
var flash5Installed = false;
var flash6Installed = false;
var maxVersion = 6;
var actualVersion = 0;
var hasRightVersion = false;
var jsVersion = 1.0;
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.1" type="text/javascript">
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false;
if(isIE && isWin){
document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('flash2Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n');
document.write('flash3Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');
document.write('flash4Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');
document.write('flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');
document.write('flash6Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');
document.write('</SCR' + 'IPT\> \n');
}
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
function detectFlash() {
if (navigator.plugins) {
if (navigator.plugins["Shockwave Flash 2.0"]
|| navigator.plugins["Shockwave Flash"]) {
var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;
alert("Flash plugin description: " + flashDescription);
var flashVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));
flash2Installed = flashVersion == 2;
flash3Installed = flashVersion == 3;
flash4Installed = flashVersion == 4;
flash5Installed = flashVersion == 5;
flash6Installed = flashVersion >= 6;
}
}
for (var i = 2; i <= maxVersion; i++) {
if (eval("flash" + i + "Installed") == true) actualVersion = i;
}
if(navigator.userAgent.indexOf("WebTV") != -1) actualVersion = 3;
alert("version detected: " + actualVersion);
if (actualVersion >= requiredVersion) {
if (useRedirect) {
if(jsVersion > 1.0) {
window.location.replace(flashPage);
} else {
window.location = flashPage;
}
}
hasRightVersion = true;
} else {
if (useRedirect) {
if(jsVersion > 1.0) {
window.location.replace((actualVersion >= 2) ? upgradePage : noFlashPage);
} else {
window.location = (actualVersion >= 2) ? upgradePage : noFlashPage;
}
}
}
}
detectFlash();
</SCRIPT>
</head>
<body background="../images/background.gif" bgcolor="white" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">
<table width="502" border="0" cellspacing="0" cellpadding="0" height="454">
<tr height="225">
<td align="left" valign="top" width="502" height="225">
<table width="502" border="0" cellspacing="0" cellpadding="0" height="225">
<tr height="1">
<td width="1" height="1"></td>
<td width="500" height="1"></td>
<td width="1" height="1"></td>
</tr>
<tr height="223">
<td width="1" height="223"></td>
<td align="left" valign="top" width="500" height="223">
<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
if (!useRedirect) {
if(hasRightVersion) {
var oeTags = '<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
+ 'WIDTH="550" HEIGHT="400"'
+ 'CODEBASE="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">' + '<PARAM NAME="MOVIE" VALUE="../flash/alphafade.swf">'
+ '<PARAM NAME="PLAY" VALUE="true">'
+ '<PARAM NAME="LOOP" VALUE="false">'
+ '<PARAM NAME="QUALITY" VALUE="high">'
+ '<PARAM NAME="MENU" VALUE="false">'
+ '<EMBED SRC="../flash/alphafade.swf"
+ 'WIDTH="500" HEIGHT="223"'
+ 'PLAY="true"'
+ 'LOOP="false"'
+ 'QUALITY="high"'
+ 'MENU="false"'
+ 'TYPE="application/x-shockwave-flash"'
+ 'PLUGINSPAGE="
http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">' + '</EMBED>'
+ '</OBJECT>';
document.write(oeTags);
} else {
var alternateContent = '<IMG SRC="alternative.jpg" HEIGHT="223" WIDTH="500">'
+ '<BR>any desired alternate html code goes here';
document.write(alternateContent);
}
}
</SCRIPT>
<NOSCRIPT>
<IMG SRC="alternative.jpg" HEIGHT="223" WIDTH="500">
</NOSCRIPT>
</td>
<td width="1" height="223"></td>
</tr>
<tr height="1">
<td width="1" height="1"></td>
<td width="500" height="1"></td>
<td width="1" height="1"></td>
</tr>
</table>
</td>
</tr>
<tr height="227">
<td align="left" valign="top" width="502" height="227">
<table width="502" border="0" cellspacing="0" cellpadding="0" height="227">
<tr height="226">
<td width="1" height="226"></td>
<td align="left" valign="top" width="500" height="226">
<table width="500" border="0" cellspacing="0" cellpadding="0" height="227">
<tr height="24">
<td width="1" height="24"></td>
<td align="left" valign="top" width="500" height="24">
<table width="500" border="0" cellspacing="0" cellpadding="0" height="24">
<tr height="24">
<td align="center" valign="middle" width="83" height="24">
<%if varLang="UK" then%>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.#version=5,0,30,0" height="25" width="500">
<param name="movie" value="../flash/menu_UK.swf?lang=<%=Request.QueryString("lang")%>">
<param name="quality" value="best">
<param name="play" value="true">
<embed height="25" pluginspage="
http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" src="../flash/menu_UK.swf?lang=<%=Request.QueryString("lang")%>" type="application/x-shockwave-flash" width="500" quality="best" play="true">
</object>
<%else%>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.#version=5,0,30,0" height="25" width="500">
<param name="movie" value="../flash/menu_DK.swf?lang=<%=Request.QueryString("lang")%>">
<param name="quality" value="best">
<param name="play" value="true">
<embed height="25" pluginspage="
http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" src="../flash/menu_DK.swf?lang=<%=Request.QueryString("lang")%>" type="application/x-shockwave-flash" width="500" quality="best" play="true">
</object>
<%end if%>
</td>
</tr>
</table>
</td>
<td width="1" height="24"></td>
</tr>
<tr height="201">
<td width="1" height="201"></td>
<td align="left" valign="top" width="500" height="201">
<iframe src="profile.asp?lang=<%=request("lang")%>" name="frame1" allowtransparency="true" scrolling="no" frameborder="0" height="100%" width="100%"></iframe>
</td>
<td width="1" height="201"></td>
</tr>
<tr height="1">
<td width="1" height="1"></td>
<td width="500" height="1"></td>
<td width="1" height="1"></td>
</tr>
</table>
</td>
<td width="1" height="226"></td>
</tr>
<tr height="1">
<td width="1" height="1"></td>
<td width="500" height="1"></td>
<td width="1" height="1"></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>